From ef877016c0e6162587580fcb53f884e257c71534 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 26 Dec 2016 19:15:47 +0000 Subject: also document the weird i2d_PKCS7_NDEF(3) listed in and OpenSSL doc/man3/d2i_X509.pod --- src/lib/libcrypto/man/d2i_PKCS7.3 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/libcrypto/man/d2i_PKCS7.3 b/src/lib/libcrypto/man/d2i_PKCS7.3 index a9bc4ba381..e366642cca 100644 --- a/src/lib/libcrypto/man/d2i_PKCS7.3 +++ b/src/lib/libcrypto/man/d2i_PKCS7.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: d2i_PKCS7.3,v 1.1 2016/12/26 18:52:51 schwarze Exp $ +.\" $OpenBSD: d2i_PKCS7.3,v 1.2 2016/12/26 19:15:47 schwarze Exp $ .\" .\" Copyright (c) 2016 Ingo Schwarze .\" @@ -24,6 +24,7 @@ .Nm i2d_PKCS7_bio , .Nm d2i_PKCS7_fp , .Nm i2d_PKCS7_fp , +.Nm i2d_PKCS7_NDEF , .Nm d2i_PKCS7_DIGEST , .Nm i2d_PKCS7_DIGEST , .Nm d2i_PKCS7_ENCRYPT , @@ -77,6 +78,11 @@ .Fa "FILE *out_fp" .Fa "PKCS7 *val_in" .Fc +.Ft int +.Fo i2d_PKCS7_NDEF +.Fa "PKCS7 *val_in" +.Fa "unsigned char **ber_out" +.Fc .Ft PKCS7_DIGEST * .Fo d2i_PKCS7_DIGEST .Fa "PKCS7_DIGEST **val_out" @@ -198,6 +204,12 @@ or .Vt FILE pointer. .Pp +.Fn i2d_PKCS7_NDEF +is similar to +.Fn i2d_PKCS7 +except that it encodes using BER rather than DER, using the indefinite +length form where appropriate. +.Pp .Fn d2i_PKCS7_DIGEST and .Fn i2d_PKCS7_DIGEST @@ -286,6 +298,7 @@ return an object of the respective type or if an error occurs. .Pp .Fn i2d_PKCS7 , +.Fn i2d_PKCS7_NDEF , .Fn i2d_PKCS7_DIGEST , .Fn i2d_PKCS7_ENCRYPT , .Fn i2d_PKCS7_ENC_CONTENT , -- cgit v1.2.3-55-g6feb