#include "SharkSSL.h"
#include <time.h>
Go to the source code of this file.
|
| SHARKSSL_API void | SubjectAltNameEnumerator_constructor (SubjectAltNameEnumerator *o, U8 *ptr, SharkSslSANLen len) |
| |
| SHARKSSL_API void | SubjectAltNameEnumerator_getElement (SubjectAltNameEnumerator *o, SubjectAltName *s) |
| |
| SHARKSSL_API int | sharkStrCaseCmp (const char *a, int aLen, const char *b, int bLen) |
| | Case insensitive string compare. More...
|
| |
| SHARKSSL_API int | sharkSubjectSubjectAltCmp (const char *cn, U16 cnLen, U8 *subjAltPtr, SharkSslSANLen subjAltLen, const char *name, U16 nameLen) |
| | Compare a length-delimited ASCII reference name with the certificate. More...
|
| |
| SHARKSSL_API BaTime | sharkParseCertTime (const U8 *utc, U8 len) |
| | Converts the expected certificate time string format YY[YY]MMDDHHMMSSZ to seconds since Jan 1, 1970. More...
|
| |
| SHARKSSL_API SharkSslConTrust | SharkSslCon_trusted (SharkSslCon *o, const char *name, SharkSslCertInfo **cPtr) |
| | Return the peer's trust status and certificate. More...
|
| |
◆ SUBJECTALTNAME_DIRECTORYNAME
| #define SUBJECTALTNAME_DIRECTORYNAME 4 |
◆ SUBJECTALTNAME_DNSNAME
| #define SUBJECTALTNAME_DNSNAME 2 |
◆ SUBJECTALTNAME_EDIPARTYNAME
| #define SUBJECTALTNAME_EDIPARTYNAME 5 |
◆ SubjectAltName_getLen
| #define SubjectAltName_getLen |
( |
|
o | ) |
((o)->len) |
◆ SubjectAltName_getPtr
| #define SubjectAltName_getPtr |
( |
|
o | ) |
((o)->ptr) |
◆ SubjectAltName_getTag
| #define SubjectAltName_getTag |
( |
|
o | ) |
((o)->tag) |
◆ SUBJECTALTNAME_IPADDRESS
| #define SUBJECTALTNAME_IPADDRESS 7 |
◆ SubjectAltName_isValid
◆ SUBJECTALTNAME_OTHERNAME
| #define SUBJECTALTNAME_OTHERNAME 0 |
◆ SUBJECTALTNAME_RFC822NAME
| #define SUBJECTALTNAME_RFC822NAME 1 |
◆ SUBJECTALTNAME_URI
| #define SUBJECTALTNAME_URI 6 |
◆ SUBJECTALTNAME_X400ADDRESS
| #define SUBJECTALTNAME_X400ADDRESS 3 |
◆ SubjectAltNameEnumerator_nextElement
◆ BaTime
◆ SubjectAltName
◆ SubjectAltNameEnumerator
◆ sharkParseCertTime()
| SHARKSSL_API BaTime sharkParseCertTime |
( |
const U8 * |
utc, |
|
|
U8 |
len |
|
) |
| |
Converts the expected certificate time string format YY[YY]MMDDHHMMSSZ to seconds since Jan 1, 1970.
◆ sharkStrCaseCmp()
| SHARKSSL_API int sharkStrCaseCmp |
( |
const char * |
a, |
|
|
int |
aLen, |
|
|
const char * |
b, |
|
|
int |
bLen |
|
) |
| |
Case insensitive string compare.
◆ sharkSubjectSubjectAltCmp()
| SHARKSSL_API int sharkSubjectSubjectAltCmp |
( |
const char * |
cn, |
|
|
U16 |
cnLen, |
|
|
U8 * |
subjAltPtr, |
|
|
SharkSslSANLen |
subjAltLen, |
|
|
const char * |
name, |
|
|
U16 |
nameLen |
|
) |
| |
Compare a length-delimited ASCII reference name with the certificate.
Canonical dotted-decimal IPv4 names match only iPAddress SANs. Ambiguous numeric spellings, non-ASCII names, embedded NULs, and IPv6 text fail closed. Convert internationalized names to ASCII A-labels before calling.
◆ SubjectAltNameEnumerator_constructor()
◆ SubjectAltNameEnumerator_getElement()