Add X509 related libctx changes.
[openssl.git] / doc / man3 / PEM_read_bio_PrivateKey.pod
index 65ba8a8a8333e29836b5911b042b8c166c9cbcdf..960a7df89e36f3a0663d6352e0f5920829f8c4f9 100644 (file)
@@ -425,6 +425,16 @@ The write routines return 1 for success or 0 for failure.
 Although the PEM routines take several arguments in almost all applications
 most of them are set to 0 or NULL.
 
+To read a certificate with a library context in PEM format from a BIO:
+
+ X509 *x = X509_new_with_libctx(libctx, NULL);
+
+ if (x == NULL)
+     /* Error */
+
+ if (PEM_read_bio_X509(bp, &x, 0, NULL) == NULL)
+     /* Error */
+
 Read a certificate in PEM format from a BIO:
 
  X509 *x;