![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cASNSets.h>
Public Member Functions | |
| cASNSets () | |
| ~cASNSets () | |
| void | SetEmptySets () |
| bool | IsEqualSets (const cASNSets &rb) const |
| HRESULT | GetDescriptionSets (StrBuilder &s) const |
| cASNSets * | FindOIDInSets (const char *oid, size_t len) const |
| cASNSets * | AddOIDToSets (const char *oid, size_t oid_len, const BYTE *val, size_t val_len) |
| HRESULT | AddOIDToExtensionList (const char *oid, size_t oid_len, const BYTE *val, size_t val_len, bool bCritical=false) |
| HRESULT | SetSetsFromStr (const char *name) |
| UNITTEST_FRIEND (cASNSets) | |
Public Member Functions inherited from GrayLib::cASNSet1 | |
| bool | isEmptySet () const |
| void | SetEmptySet () |
| bool | IsEqualSet (const cASNSet1 *b) const |
| HRESULT | ReadSet2 (cASNReader &r) |
| HRESULT | ReadSet1 (cASNReader &r) |
| HRESULT | GetDescriptionSet (StrBuilder &s) const |
Public Attributes | |
| bool | m_bNextMerged |
| Merge next item into the current one? More... | |
| cASNSets * | m_pNextSet |
| The next entry in the sequence. More... | |
Public Attributes inherited from GrayLib::cASNSet1 | |
| cASNBufAlloc | m_oid |
| The object identifier. name. More... | |
| cASNBufAlloc | m_val |
| The value. More... | |
Element in a sequence or list of 'named' ASN.1 data items. List of ASNF_CONSTRUCTED | ASN_SET. List of ASN1 "named information objects". It allows for Relative Distinguished Names (e.g. cn=GrayLib,ou=code,etc.).
|
inline |
|
inline |
| HRESULT GrayLib::cASNSets::AddOIDToExtensionList | ( | const char * | oid, |
| size_t | oid_len, | ||
| const BYTE * | val, | ||
| size_t | val_len, | ||
| bool | bCritical = false |
||
| ) |
The first byte of the value in the cASNSets structure is reserved to store the bCritical boolean for us
| cASNSets * GrayLib::cASNSets::AddOIDToSets | ( | const char * | oid, |
| size_t | oid_len, | ||
| const BYTE * | val, | ||
| size_t | val_len | ||
| ) |
Create or find a specific named_data entry for writing in a sequence or list based on the OID. If not already in there, a new entry is added to the head of the list.
| cASNSets * GrayLib::cASNSets::FindOIDInSets | ( | const char * | oid, |
| size_t | len | ||
| ) | const |
Find a specific named_data entry in a sequence or list based on the OID.
| HRESULT GrayLib::cASNSets::GetDescriptionSets | ( | StrBuilder & | s | ) | const |
Store the certificate DN in printable form into StrBuilder; for GetDescription() no more than nSizeMax characters will be written. The X509 name to represent
| bool GrayLib::cASNSets::IsEqualSets | ( | const cASNSets & | rb | ) | const |
Compare two X.509 Name sequences.
|
inline |
| HRESULT GrayLib::cASNSets::SetSetsFromStr | ( | const char * | name | ) |
Parse a list of OID attributes from string. Clear existing chain if present e.g. pszStr = "C=UK,O=ARM,CN=GrayLib TLS CA"
| GrayLib::cASNSets::UNITTEST_FRIEND | ( | cASNSets | ) |
| bool GrayLib::cASNSets::m_bNextMerged |
Merge next item into the current one?
| cASNSets* GrayLib::cASNSets::m_pNextSet |
The next entry in the sequence.