rucades 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/rucades/cplib/Blob.h +205 -163
- data/ext/rucades/cplib/CPPEnrollEnumerations.h +603 -0
- data/ext/rucades/cplib/DateTime.h +506 -455
- data/ext/rucades/cplib/StringProxy.h +229 -187
- data/ext/rucades/cplib/cpstldll.h +225 -0
- data/ext/rucades/extconf.rb +28 -12
- data/ext/rucades/rucades_about.cpp +3 -3
- data/ext/rucades/rucades_about.h +1 -1
- data/ext/rucades/rucades_algorithm.cpp +2 -2
- data/ext/rucades/rucades_algorithm.h +2 -2
- data/ext/rucades/rucades_attribute.cpp +3 -3
- data/ext/rucades/rucades_attribute.h +2 -2
- data/ext/rucades/rucades_attributes.cpp +2 -2
- data/ext/rucades/rucades_attributes.h +2 -2
- data/ext/rucades/rucades_basic_constraints.cpp +3 -3
- data/ext/rucades/rucades_basic_constraints.h +2 -2
- data/ext/rucades/rucades_blobs.cpp +3 -3
- data/ext/rucades/rucades_blobs.h +2 -2
- data/ext/rucades/rucades_certificate.cpp +3 -3
- data/ext/rucades/rucades_certificate.h +2 -2
- data/ext/rucades/rucades_certificate_status.cpp +2 -2
- data/ext/rucades/rucades_certificate_status.h +2 -2
- data/ext/rucades/rucades_certificates.cpp +8 -8
- data/ext/rucades/rucades_certificates.h +2 -2
- data/ext/rucades/rucades_crl.cpp +1 -1
- data/ext/rucades/rucades_crl.h +1 -1
- data/ext/rucades/rucades_eku.cpp +2 -2
- data/ext/rucades/rucades_eku.h +2 -2
- data/ext/rucades/rucades_ekus.cpp +3 -3
- data/ext/rucades/rucades_ekus.h +2 -2
- data/ext/rucades/rucades_encoded_data.cpp +1 -1
- data/ext/rucades/rucades_encoded_data.h +1 -1
- data/ext/rucades/rucades_enveloped_data.cpp +1 -1
- data/ext/rucades/rucades_enveloped_data.h +1 -1
- data/ext/rucades/rucades_extended_key_usage.cpp +2 -2
- data/ext/rucades/rucades_extended_key_usage.h +2 -2
- data/ext/rucades/rucades_hashed_data.cpp +1 -1
- data/ext/rucades/rucades_hashed_data.h +1 -1
- data/ext/rucades/rucades_key_usage.cpp +3 -3
- data/ext/rucades/rucades_key_usage.h +2 -2
- data/ext/rucades/rucades_oid.cpp +3 -3
- data/ext/rucades/rucades_oid.h +2 -2
- data/ext/rucades/rucades_private_key.cpp +3 -3
- data/ext/rucades/rucades_private_key.h +2 -2
- data/ext/rucades/rucades_public_key.cpp +2 -2
- data/ext/rucades/rucades_public_key.h +2 -2
- data/ext/rucades/rucades_raw_signature.cpp +2 -2
- data/ext/rucades/rucades_raw_signature.h +2 -2
- data/ext/rucades/rucades_recipients.cpp +2 -2
- data/ext/rucades/rucades_recipients.h +2 -2
- data/ext/rucades/rucades_signature_status.cpp +2 -2
- data/ext/rucades/rucades_signature_status.h +2 -2
- data/ext/rucades/rucades_signed_data.cpp +7 -7
- data/ext/rucades/rucades_signed_data.h +1 -1
- data/ext/rucades/rucades_signed_xml.cpp +2 -2
- data/ext/rucades/rucades_signed_xml.h +1 -1
- data/ext/rucades/rucades_signer.cpp +8 -8
- data/ext/rucades/rucades_signer.h +2 -2
- data/ext/rucades/rucades_signers.cpp +2 -2
- data/ext/rucades/rucades_signers.h +2 -2
- data/ext/rucades/rucades_store.cpp +2 -2
- data/ext/rucades/rucades_store.h +1 -1
- data/ext/rucades/rucades_symmetric_algorithm.cpp +3 -3
- data/ext/rucades/rucades_symmetric_algorithm.h +2 -2
- data/ext/rucades/rucades_version.cpp +2 -2
- data/ext/rucades/rucades_version.h +2 -2
- data/ext/rucades/stdafx.h +207 -121
- data/lib/rucades/version.rb +1 -1
- data/samples/encrypt_decrypt.rb +17 -14
- data/samples/sign_verify.rb +14 -17
- data/sig/rucades.rbs +850 -1
- metadata +3 -4
- data/ext/rucades/cpstldll.h +0 -183
- data/ext/rucades/errormsg.cpp +0 -561
- data/ext/rucades/errormsg.h +0 -31
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rucades
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxim [maxirmx] Samsonov
|
|
@@ -52,11 +52,10 @@ files:
|
|
|
52
52
|
- README.md
|
|
53
53
|
- Rakefile
|
|
54
54
|
- ext/rucades/cplib/Blob.h
|
|
55
|
+
- ext/rucades/cplib/CPPEnrollEnumerations.h
|
|
55
56
|
- ext/rucades/cplib/DateTime.h
|
|
56
57
|
- ext/rucades/cplib/StringProxy.h
|
|
57
|
-
- ext/rucades/cpstldll.h
|
|
58
|
-
- ext/rucades/errormsg.cpp
|
|
59
|
-
- ext/rucades/errormsg.h
|
|
58
|
+
- ext/rucades/cplib/cpstldll.h
|
|
60
59
|
- ext/rucades/extconf.rb
|
|
61
60
|
- ext/rucades/rucades.cpp
|
|
62
61
|
- ext/rucades/rucades.h
|
data/ext/rucades/cpstldll.h
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright(C) 2004 ������ ���
|
|
3
|
-
*
|
|
4
|
-
* ���� ���� �������� ����������, ����������
|
|
5
|
-
* �������������� �������� ������ ���.
|
|
6
|
-
*
|
|
7
|
-
* ����� ����� ����� ����� �� ����� ���� �����������,
|
|
8
|
-
* ����������, ���������� �� ������ �����,
|
|
9
|
-
* ������������ ��� �������������� ����� ��������,
|
|
10
|
-
* ���������������, �������� �� ���� � ��� ��
|
|
11
|
-
* ����� ������������ ������� ��� ����������������
|
|
12
|
-
* ���������� ���������� � ��������� ������ ���.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/*!
|
|
16
|
-
* \file $RCSfile$
|
|
17
|
-
* \version $Revision$
|
|
18
|
-
* \date $Date:: $
|
|
19
|
-
* \author $Author$
|
|
20
|
-
*
|
|
21
|
-
* \brief ������� ��� stl �������, ����������� �� �������������� � dll.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
#ifndef _CPSTLDLL_H_INCLUDED
|
|
25
|
-
#define _CPSTLDLL_H_INCLUDED
|
|
26
|
-
|
|
27
|
-
#include <list>
|
|
28
|
-
|
|
29
|
-
#if defined UNIX
|
|
30
|
-
# define CDllList std::list
|
|
31
|
-
# define EXPIMP_CDLLLIST_ITERATORS(...)
|
|
32
|
-
#else // !defined UNIX
|
|
33
|
-
|
|
34
|
-
#ifdef NO_EXPIMP_CDLLLIST_ITERATORS
|
|
35
|
-
# define EXPIMP_CDLLLIST_ITERATORS(...)
|
|
36
|
-
#else
|
|
37
|
-
# define EXPIMP_CDLLLIST_ITERATORS(Type, Extern, Declspec) \
|
|
38
|
-
__pragma(warning(push)); \
|
|
39
|
-
__pragma(warning(disable: 4231)); \
|
|
40
|
-
Extern template class Declspec CDllList<Type>::_Const_iterator; \
|
|
41
|
-
Extern template class Declspec CDllList<Type>::_Iterator; \
|
|
42
|
-
__pragma(warning(pop));
|
|
43
|
-
#endif
|
|
44
|
-
|
|
45
|
-
namespace CryptoPro {
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* \class CDllList cpstldll.h <cpstldll.h>
|
|
49
|
-
* \brief ����� ������ ����������� �� ���������� ������ std::list �� ����������
|
|
50
|
-
* ����������� ��������.
|
|
51
|
-
*/
|
|
52
|
-
template<class _Ty>
|
|
53
|
-
class CDllList
|
|
54
|
-
{
|
|
55
|
-
typedef typename std::list<_Ty> stlContainer;
|
|
56
|
-
typedef CDllList<_Ty> _Myt;
|
|
57
|
-
typedef typename stlContainer::pointer _Tptr;
|
|
58
|
-
typedef typename stlContainer::reference _Reft;
|
|
59
|
-
#ifdef _STL70_
|
|
60
|
-
typedef typename stlContainer::iterator cont_const_iterator;
|
|
61
|
-
#else
|
|
62
|
-
typedef typename stlContainer::const_iterator cont_const_iterator;
|
|
63
|
-
#endif
|
|
64
|
-
typedef typename stlContainer::iterator cont_iterator;
|
|
65
|
-
public:
|
|
66
|
-
typedef typename stlContainer::allocator_type allocator_type;
|
|
67
|
-
typedef typename stlContainer::size_type size_type;
|
|
68
|
-
typedef typename stlContainer::difference_type difference_type;
|
|
69
|
-
typedef typename stlContainer::pointer pointer;
|
|
70
|
-
typedef typename stlContainer::const_pointer const_pointer;
|
|
71
|
-
typedef typename stlContainer::reference reference;
|
|
72
|
-
typedef typename stlContainer::const_reference const_reference;
|
|
73
|
-
typedef typename stlContainer::value_type value_type;
|
|
74
|
-
typedef typename stlContainer::const_reverse_iterator const_reverse_iterator;
|
|
75
|
-
typedef typename stlContainer::reverse_iterator reverse_iterator;
|
|
76
|
-
|
|
77
|
-
class _Const_iterator
|
|
78
|
-
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER < 1600) && !defined ( _STL70_ )
|
|
79
|
-
// ����� VS2008 ������� �������� �� checked
|
|
80
|
-
: public std::_Iterator_base_universal
|
|
81
|
-
#endif // defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER < 1700)
|
|
82
|
-
{
|
|
83
|
-
friend CDllList;
|
|
84
|
-
|
|
85
|
-
cont_const_iterator *pImpl_;
|
|
86
|
-
|
|
87
|
-
_Const_iterator(const cont_const_iterator it);
|
|
88
|
-
|
|
89
|
-
public:
|
|
90
|
-
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER < 1600)
|
|
91
|
-
typedef std::_Range_checked_iterator_tag _Checked_iterator_category;
|
|
92
|
-
#endif //defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER < 1700)
|
|
93
|
-
|
|
94
|
-
typedef std::bidirectional_iterator_tag iterator_category;
|
|
95
|
-
typedef _Ty value_type;
|
|
96
|
-
typedef typename stlContainer::difference_type difference_type;
|
|
97
|
-
typedef typename stlContainer::const_pointer pointer;
|
|
98
|
-
typedef typename stlContainer::const_reference reference;
|
|
99
|
-
|
|
100
|
-
_Const_iterator();
|
|
101
|
-
~_Const_iterator();
|
|
102
|
-
|
|
103
|
-
_Const_iterator(const _Const_iterator& _Right);
|
|
104
|
-
_Const_iterator& operator=(const _Const_iterator& _Right);
|
|
105
|
-
|
|
106
|
-
const_reference operator*() const;
|
|
107
|
-
const_pointer operator->() const;
|
|
108
|
-
_Const_iterator& operator++();
|
|
109
|
-
_Const_iterator operator++(int);
|
|
110
|
-
_Const_iterator& operator--();
|
|
111
|
-
_Const_iterator operator--(int);
|
|
112
|
-
bool operator==(const _Const_iterator& _Right) const;
|
|
113
|
-
bool operator!=(const _Const_iterator& _Right) const;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
class _Iterator : public _Const_iterator
|
|
117
|
-
{
|
|
118
|
-
friend CDllList;
|
|
119
|
-
|
|
120
|
-
_Iterator(const cont_iterator it);
|
|
121
|
-
|
|
122
|
-
public:
|
|
123
|
-
_Iterator();
|
|
124
|
-
|
|
125
|
-
_Reft operator*() const;
|
|
126
|
-
_Tptr operator->() const;
|
|
127
|
-
_Iterator& operator++();
|
|
128
|
-
_Iterator operator++(int);
|
|
129
|
-
_Iterator& operator--();
|
|
130
|
-
_Iterator operator--(int);
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
typedef _Const_iterator const_iterator;
|
|
134
|
-
typedef _Iterator iterator;
|
|
135
|
-
|
|
136
|
-
CDllList();
|
|
137
|
-
CDllList( const _Myt& _Right);
|
|
138
|
-
~CDllList();
|
|
139
|
-
|
|
140
|
-
const_iterator begin() const;
|
|
141
|
-
const_iterator end() const;
|
|
142
|
-
iterator begin();
|
|
143
|
-
iterator end();
|
|
144
|
-
const_reverse_iterator rbegin() const;
|
|
145
|
-
const_reverse_iterator rend() const;
|
|
146
|
-
reverse_iterator rbegin();
|
|
147
|
-
reverse_iterator rend();
|
|
148
|
-
_Myt& operator=(const _Myt& _Right);
|
|
149
|
-
void resize(size_type _Newsize);
|
|
150
|
-
void resize(size_type _Newsize, _Ty _Val);
|
|
151
|
-
size_type size() const;
|
|
152
|
-
size_type max_size() const;
|
|
153
|
-
bool empty() const;
|
|
154
|
-
reference front();
|
|
155
|
-
const_reference front() const;
|
|
156
|
-
reference back();
|
|
157
|
-
const_reference back() const;
|
|
158
|
-
void push_front(const _Ty& _Val);
|
|
159
|
-
void push_back(const _Ty& _Val);
|
|
160
|
-
void pop_front();
|
|
161
|
-
void pop_back();
|
|
162
|
-
void assign(size_type _Count, const _Ty& _Val);
|
|
163
|
-
iterator insert(iterator _Where, const _Ty& _Val);
|
|
164
|
-
void insert(iterator _Where, iterator _First, iterator _Last);
|
|
165
|
-
void insert(iterator _Where, size_type _Count, const _Ty& _Val);
|
|
166
|
-
iterator erase(iterator _Where);
|
|
167
|
-
iterator erase(iterator _First, iterator _Last);
|
|
168
|
-
void clear();
|
|
169
|
-
void swap(_Myt& _Right);
|
|
170
|
-
// void sort();
|
|
171
|
-
// void reverse();
|
|
172
|
-
protected:
|
|
173
|
-
void* impl();
|
|
174
|
-
const void* impl() const;
|
|
175
|
-
private:
|
|
176
|
-
void* pImpl_;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
} // namespace CryptoPro
|
|
180
|
-
|
|
181
|
-
#endif // !defined UNIX
|
|
182
|
-
|
|
183
|
-
#endif // _CPSTLDLL_H_INCLUDED
|