asn1_ps_func

Prefix/suffix producer for an ASN.1 filter BIO (BIO_f_asn1).

Synopsis

Declared in <openssl/bio.h>

typedef int asn1_ps_func(BIO*, unsigned char**, int*, void*);

Return Value

1 on success, or <=0 on failure.

Parameters

NameDescription
bASN.1 BIO requesting prefix or suffix octets.
pbufReceives a pointer to the produced buffer (owned per BIO_asn1_set_* contract).
plenReceives the number of bytes at *pbuf.
pargOpaque pointer from BIO_asn1_set_prefix() / BIO_asn1_set_suffix().