components/openssl: add internal openssl X509 debug function

This commit is contained in:
Dong Heng
2016-10-09 16:42:49 +08:00
parent de587a2e0d
commit 2033068a72
7 changed files with 77 additions and 3 deletions

View File

@@ -71,12 +71,14 @@
#define IMPLEMENT_X509_METHOD(func_name, \
new, \
free, \
load) \
load, \
show_info) \
const X509_METHOD* func_name(void) { \
static const X509_METHOD func_name##_data LOCAL_ATRR = { \
new, \
free, \
load \
load, \
show_info \
}; \
return &func_name##_data; \
}

View File

@@ -275,6 +275,8 @@ struct x509_method_st {
void (*x509_free)(X509 *x);
int (*x509_load)(X509 *x, const unsigned char *buf, int len);
int (*x509_show_info)(X509 *x);
};
struct pkey_method_st {