Many applications will want to parse or encode and add an extension: they should use the extension encode and decode functions instead such as X509_add1_ext_i2d() and X509_get_ext_d2i(). Extension indices start from zero, so a zero index return value is not an error. These search ...
i = X509_get_ext_by_NID(ctx->issuer_cert, NID_subject_alt_name, -1); if (i < 0) return 1; if ((ext = X509_get_ext(ctx->issuer_cert, i)) == NULL || (ialt = X509V3_EXT_d2i(ext)) == NULL) { ERR_raise(ERR_LIB_X509V3, X509V3_R_ISSUER_DECODE_ERROR)...
void * X509V3_get_d2i (STACK_OF(X509_EXTENSION)*x, int nid, int *crit, int *idx) X509_EXTENSION * X509V3_EXT_i2d (int ext_nid, int crit, void *ext_struc) int X509V3_add1_i2d (STACK_OF(X509_EXTENSION)**x, int nid, void *value, int crit, unsigned long flags) char * ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...