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:
Dr. Stephen Henson
1999-02-14 16:48:22 +00:00
parent 6013fa8395
commit 388ff0b076
4 changed files with 116 additions and 12 deletions

View File

@@ -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);