[#ASN1_TYPE_get_octetstring] = ASN1_TYPE_get_octetstring :mrdocs: Copy the OCTET STRING contents of an ASN1_TYPE into `data.` == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_TYPE_get_octetstring( xref:ASN1_TYPE.adoc[ASN1_TYPE] const* a, unsigned char* data, int max_len); ---- == Return Value Full OCTET STRING length on success, or ‐1 on type/content error. == Parameters [cols="1,4"] |=== | Name| Description | *a* | ASN1_TYPE that must hold V_ASN1_OCTET_STRING. | *data* | Buffer that receives up to `max_len` content octets. | *max_len* | Capacity of `data` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#