Encode an ASN.1 object with i2d and write it as a PEM block to a BIO.
Synopsis
Declared in <openssl/pem.h>
int
PEM_ASN1_write_bio(
i2d_of_void* i2d,
char const* name,
BIO* bp,
void const* x,
EVP_CIPHER const* enc,
unsigned char const* kstr,
int klen,
pem_password_cb* cb,
void* u);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
i2d |
Encoder such as i2d_X509. |
name |
PEM type label written after "‐‐‐‐‐BEGIN ". |
bp |
BIO that receives the PEM text. |
x |
Object passed to |
enc |
Optional cipher for encrypting the PEM, or NULL for cleartext. |
kstr |
Optional encryption key bytes when |
klen |
Length of |
cb |
Password callback used when |
u |
Application data passed to |
Created with MrDocs