Add support for raw extensions. This means that you can include the DER encoding
of an arbitrary extension: e.g. 1.3.4.5=critical,RAW:12:34:56 Using this technique currently unsupported extensions can be generated if you know their DER encoding. Even if the extension is supported in future the raw extension will still work: that is the raw version can always be used even if it is a supported extension.
This commit is contained in:
@@ -420,7 +420,11 @@ int no_name;
|
||||
|
||||
/* Work out size of content octets */
|
||||
i=a2d_ASN1_OBJECT(NULL,0,s,-1);
|
||||
if (i <= 0) return NULL;
|
||||
if (i <= 0) {
|
||||
/* Clear the error */
|
||||
ERR_get_error();
|
||||
return NULL;
|
||||
}
|
||||
/* Work out total size */
|
||||
j = ASN1_object_size(0,i,V_ASN1_OBJECT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user