mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
openssl: basic support for errors and bio objects
Closes https://github.com/espressif/esp-idf/issues/3406
This commit is contained in:
@@ -17,6 +17,49 @@
|
||||
} \
|
||||
|
||||
#define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)
|
||||
typedef struct asn1_string_st ASN1_OCTET_STRING;
|
||||
|
||||
struct stack_st_GENERAL_NAME;
|
||||
typedef struct GENERAL_NAME_st {
|
||||
int type;
|
||||
union {
|
||||
char *ptr;
|
||||
struct asn1_string_st* dNSName;
|
||||
ASN1_OCTET_STRING* iPAddress;
|
||||
} d;
|
||||
} GENERAL_NAME;
|
||||
|
||||
typedef struct asn1_string_st ASN1_OCTET_STRING;
|
||||
typedef struct X509_name_st X509_NAME;
|
||||
typedef struct asn1_string_st ASN1_STRING;
|
||||
typedef struct X509_name_entry_st X509_NAME_ENTRY;
|
||||
|
||||
typedef struct asn1_string_st {
|
||||
int type;
|
||||
int length;
|
||||
void *data;
|
||||
} ASN1_IA5STRING;
|
||||
|
||||
typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
|
||||
|
||||
/**
|
||||
* @brief get nr of stack items
|
||||
*
|
||||
* @param sk Stack structure pointer
|
||||
*
|
||||
* @return number of items in the stack
|
||||
*/
|
||||
size_t sk_GENERAL_NAME_num(const struct stack_st_GENERAL_NAME *sk);
|
||||
|
||||
/**
|
||||
* @brief get GENERAL_NAME value from the stack
|
||||
*
|
||||
* @param sk Stack structure pointer
|
||||
* @param i Index to stack item
|
||||
*
|
||||
* @return GENERAL_NAME object pointer
|
||||
*/
|
||||
GENERAL_NAME *sk_GENERAL_NAME_value(const struct stack_st_GENERAL_NAME *sk, size_t i);
|
||||
|
||||
/**
|
||||
* @brief create a openssl stack object
|
||||
|
Reference in New Issue
Block a user