ASN1_INTEGER *serial;
serial = X509_get_serialNumber(x);
What function should be called for using 'serial->data' as DER-encoded
string?
Use the normal i2d_ASN1_INTEGER() function, i.e. (without
error checking):
int len;
unsigned char *buf, *p;
len = i2d_ASN1_INTEGER(seria
Dmitri Bogutski wrote:
Nils Larsch wrote:
Dmitri Bogutski wrote:
Hello,
How to get a DER-encoded of the certificate issuer name?
I do the following:
BIO *mem;
X509 *x;
X509_NAME *issuer;
/* 'buf' is a buffer the containing certificate read from an ID-card */
/* 'len' - length of certificate