Add x509:setencode() function to change the encode of ASN.1 string.

This commit is contained in:
Bruno Silvestre
2013-10-23 13:42:34 -02:00
parent 063e8a8a5c
commit ce504d3554
2 changed files with 61 additions and 14 deletions

View File

@ -12,8 +12,12 @@
#include "config.h"
/* We do not support UniversalString nor BMPString as ASN.1 String types */
enum { LSEC_AI5_STRING, LSEC_UTF8_STRING };
typedef struct t_x509_ {
X509 *cert;
int encode;
} t_x509;
typedef t_x509* p_x509;