diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_OCSP_REQUEST.3 | 177 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_OCSP_RESPONSE.3 | 243 |
3 files changed, 423 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index afd0fe5512..0e8d4dde50 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.104 2016/12/27 20:56:18 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.105 2016/12/27 22:06:55 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -232,6 +232,8 @@ MAN= \ | |||
| 232 | d2i_DSAPublicKey.3 \ | 232 | d2i_DSAPublicKey.3 \ |
| 233 | d2i_ECPKParameters.3 \ | 233 | d2i_ECPKParameters.3 \ |
| 234 | d2i_ESS_SIGNING_CERT.3 \ | 234 | d2i_ESS_SIGNING_CERT.3 \ |
| 235 | d2i_OCSP_REQUEST.3 \ | ||
| 236 | d2i_OCSP_RESPONSE.3 \ | ||
| 235 | d2i_PKCS12.3 \ | 237 | d2i_PKCS12.3 \ |
| 236 | d2i_PKCS7.3 \ | 238 | d2i_PKCS7.3 \ |
| 237 | d2i_PKCS8PrivateKey_bio.3 \ | 239 | d2i_PKCS8PrivateKey_bio.3 \ |
diff --git a/src/lib/libcrypto/man/d2i_OCSP_REQUEST.3 b/src/lib/libcrypto/man/d2i_OCSP_REQUEST.3 new file mode 100644 index 0000000000..3f6320a155 --- /dev/null +++ b/src/lib/libcrypto/man/d2i_OCSP_REQUEST.3 | |||
| @@ -0,0 +1,177 @@ | |||
| 1 | .\" $OpenBSD: d2i_OCSP_REQUEST.3,v 1.1 2016/12/27 22:06:55 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 27 2016 $ | ||
| 18 | .Dt D2I_OCSP_REQUEST 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm d2i_OCSP_REQUEST , | ||
| 22 | .Nm i2d_OCSP_REQUEST , | ||
| 23 | .Nm d2i_OCSP_SIGNATURE , | ||
| 24 | .Nm i2d_OCSP_SIGNATURE , | ||
| 25 | .Nm d2i_OCSP_REQINFO , | ||
| 26 | .Nm i2d_OCSP_REQINFO , | ||
| 27 | .Nm d2i_OCSP_ONEREQ , | ||
| 28 | .Nm i2d_OCSP_ONEREQ , | ||
| 29 | .Nm d2i_OCSP_CERTID , | ||
| 30 | .Nm i2d_OCSP_CERTID , | ||
| 31 | .Nm d2i_OCSP_SERVICELOC , | ||
| 32 | .Nm i2d_OCSP_SERVICELOC | ||
| 33 | .Nd decode and encode OCSP requests | ||
| 34 | .Sh SYNOPSIS | ||
| 35 | .In openssl/ocsp.h | ||
| 36 | .Ft OCSP_REQUEST * | ||
| 37 | .Fo d2i_OCSP_REQUEST | ||
| 38 | .Fa "OCSP_REQUEST **val_out" | ||
| 39 | .Fa "const unsigned char **der_in" | ||
| 40 | .Fa "long length" | ||
| 41 | .Fc | ||
| 42 | .Ft int | ||
| 43 | .Fo i2d_OCSP_REQUEST | ||
| 44 | .Fa "OCSP_REQUEST *val_in" | ||
| 45 | .Fa "unsigned char **der_out" | ||
| 46 | .Fc | ||
| 47 | .Ft OCSP_SIGNATURE * | ||
| 48 | .Fo d2i_OCSP_SIGNATURE | ||
| 49 | .Fa "OCSP_SIGNATURE **val_out" | ||
| 50 | .Fa "const unsigned char **der_in" | ||
| 51 | .Fa "long length" | ||
| 52 | .Fc | ||
| 53 | .Ft int | ||
| 54 | .Fo i2d_OCSP_SIGNATURE | ||
| 55 | .Fa "OCSP_SIGNATURE *val_in" | ||
| 56 | .Fa "unsigned char **der_out" | ||
| 57 | .Fc | ||
| 58 | .Ft OCSP_REQINFO * | ||
| 59 | .Fo d2i_OCSP_REQINFO | ||
| 60 | .Fa "OCSP_REQINFO **val_out" | ||
| 61 | .Fa "const unsigned char **der_in" | ||
| 62 | .Fa "long length" | ||
| 63 | .Fc | ||
| 64 | .Ft int | ||
| 65 | .Fo i2d_OCSP_REQINFO | ||
| 66 | .Fa "OCSP_REQINFO *val_in" | ||
| 67 | .Fa "unsigned char **der_out" | ||
| 68 | .Fc | ||
| 69 | .Ft OCSP_ONEREQ * | ||
| 70 | .Fo d2i_OCSP_ONEREQ | ||
| 71 | .Fa "OCSP_ONEREQ **val_out" | ||
| 72 | .Fa "const unsigned char **der_in" | ||
| 73 | .Fa "long length" | ||
| 74 | .Fc | ||
| 75 | .Ft int | ||
| 76 | .Fo i2d_OCSP_ONEREQ | ||
| 77 | .Fa "OCSP_ONEREQ *val_in" | ||
| 78 | .Fa "unsigned char **der_out" | ||
| 79 | .Fc | ||
| 80 | .Ft OCSP_CERTID * | ||
| 81 | .Fo d2i_OCSP_CERTID | ||
| 82 | .Fa "OCSP_CERTID **val_out" | ||
| 83 | .Fa "const unsigned char **der_in" | ||
| 84 | .Fa "long length" | ||
| 85 | .Fc | ||
| 86 | .Ft int | ||
| 87 | .Fo i2d_OCSP_CERTID | ||
| 88 | .Fa "OCSP_CERTID *val_in" | ||
| 89 | .Fa "unsigned char **der_out" | ||
| 90 | .Fc | ||
| 91 | .Ft OCSP_SERVICELOC * | ||
| 92 | .Fo d2i_OCSP_SERVICELOC | ||
| 93 | .Fa "OCSP_SERVICELOC **val_out" | ||
| 94 | .Fa "const unsigned char **der_in" | ||
| 95 | .Fa "long length" | ||
| 96 | .Fc | ||
| 97 | .Ft int | ||
| 98 | .Fo i2d_OCSP_SERVICELOC | ||
| 99 | .Fa "OCSP_SERVICELOC *val_in" | ||
| 100 | .Fa "unsigned char **der_out" | ||
| 101 | .Fc | ||
| 102 | .Sh DESCRIPTION | ||
| 103 | Theses functions decode and encode ASN.1 structures used for OCSP | ||
| 104 | requests. | ||
| 105 | For details about the semantics, examples, caveats, and bugs, see | ||
| 106 | .Xr ASN1_item_d2i 3 . | ||
| 107 | .Pp | ||
| 108 | .Fn d2i_OCSP_REQUEST | ||
| 109 | and | ||
| 110 | .Fn i2d_OCSP_REQUEST | ||
| 111 | decode and encode an ASN.1 | ||
| 112 | .Vt OCSPRequest | ||
| 113 | structure defined in RFC 6960 section 4.1.1. | ||
| 114 | .Pp | ||
| 115 | .Fn d2i_OCSP_SIGNATURE | ||
| 116 | and | ||
| 117 | .Fn i2d_OCSP_SIGNATURE | ||
| 118 | decode and encode an ASN.1 | ||
| 119 | .Vt Signature | ||
| 120 | structure defined in RFC 6960 section 4.1.1. | ||
| 121 | .Pp | ||
| 122 | .Fn d2i_OCSP_REQINFO | ||
| 123 | and | ||
| 124 | .Fn i2d_OCSP_REQINFO | ||
| 125 | decode and encode an ASN.1 | ||
| 126 | .Vt TBSRequest | ||
| 127 | structure defined in RFC 6960 section 4.1.1. | ||
| 128 | .Pp | ||
| 129 | .Fn d2i_OCSP_ONEREQ | ||
| 130 | and | ||
| 131 | .Fn i2d_OCSP_ONEREQ | ||
| 132 | decode and encode an ASN.1 | ||
| 133 | .Vt Request | ||
| 134 | structure defined in RFC 6960 section 4.1.1. | ||
| 135 | .Pp | ||
| 136 | .Fn d2i_OCSP_CERTID | ||
| 137 | and | ||
| 138 | .Fn i2d_OCSP_CERTID | ||
| 139 | decode and encode an ASN.1 | ||
| 140 | .Vt CertID | ||
| 141 | structure defined in RFC 6960 section 4.1.1. | ||
| 142 | .Pp | ||
| 143 | .Fn d2i_OCSP_SERVICELOC | ||
| 144 | and | ||
| 145 | .Fn i2d_OCSP_SERVICELOC | ||
| 146 | decode and encode an ASN.1 | ||
| 147 | .Vt ServiceLocator | ||
| 148 | structure defined in RFC 6960 section 4.4.6. | ||
| 149 | .Sh RETURN VALUES | ||
| 150 | .Fn d2i_OCSP_REQUEST , | ||
| 151 | .Fn d2i_OCSP_SIGNATURE , | ||
| 152 | .Fn d2i_OCSP_REQINFO , | ||
| 153 | .Fn d2i_OCSP_ONEREQ , | ||
| 154 | .Fn d2i_OCSP_CERTID , | ||
| 155 | and | ||
| 156 | .Fn d2i_OCSP_SERVICELOC | ||
| 157 | return an object of the respective type or | ||
| 158 | .Dv NULL | ||
| 159 | if an error occurs. | ||
| 160 | .Pp | ||
| 161 | .Fn i2d_OCSP_REQUEST , | ||
| 162 | .Fn i2d_OCSP_SIGNATURE , | ||
| 163 | .Fn i2d_OCSP_REQINFO , | ||
| 164 | .Fn i2d_OCSP_ONEREQ , | ||
| 165 | .Fn i2d_OCSP_CERTID , | ||
| 166 | and | ||
| 167 | .Fn i2d_OCSP_SERVICELOC | ||
| 168 | return the number of bytes successfully encoded or a negative value | ||
| 169 | if an error occurs. | ||
| 170 | .Sh SEE ALSO | ||
| 171 | .Xr ASN1_item_d2i 3 , | ||
| 172 | .Xr OCSP_CERTID_new 3 , | ||
| 173 | .Xr OCSP_REQUEST_new 3 , | ||
| 174 | .Xr OCSP_SERVICELOC_new 3 | ||
| 175 | .Sh STANDARDS | ||
| 176 | RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate | ||
| 177 | Status Protocol, section 4.1: Request Syntax | ||
diff --git a/src/lib/libcrypto/man/d2i_OCSP_RESPONSE.3 b/src/lib/libcrypto/man/d2i_OCSP_RESPONSE.3 new file mode 100644 index 0000000000..bdc54913d1 --- /dev/null +++ b/src/lib/libcrypto/man/d2i_OCSP_RESPONSE.3 | |||
| @@ -0,0 +1,243 @@ | |||
| 1 | .\" $OpenBSD: d2i_OCSP_RESPONSE.3,v 1.1 2016/12/27 22:06:55 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 27 2016 $ | ||
| 18 | .Dt D2I_OCSP_RESPONSE 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm d2i_OCSP_RESPONSE , | ||
| 22 | .Nm i2d_OCSP_RESPONSE , | ||
| 23 | .Nm d2i_OCSP_RESPBYTES , | ||
| 24 | .Nm i2d_OCSP_RESPBYTES , | ||
| 25 | .Nm d2i_OCSP_BASICRESP , | ||
| 26 | .Nm i2d_OCSP_BASICRESP , | ||
| 27 | .Nm d2i_OCSP_RESPDATA , | ||
| 28 | .Nm i2d_OCSP_RESPDATA , | ||
| 29 | .Nm d2i_OCSP_RESPID , | ||
| 30 | .Nm i2d_OCSP_RESPID , | ||
| 31 | .Nm d2i_OCSP_SINGLERESP , | ||
| 32 | .Nm i2d_OCSP_SINGLERESP , | ||
| 33 | .Nm d2i_OCSP_CERTSTATUS , | ||
| 34 | .Nm i2d_OCSP_CERTSTATUS , | ||
| 35 | .Nm d2i_OCSP_REVOKEDINFO , | ||
| 36 | .Nm i2d_OCSP_REVOKEDINFO , | ||
| 37 | .Nm d2i_OCSP_CRLID , | ||
| 38 | .Nm i2d_OCSP_CRLID | ||
| 39 | .Nd decode and encode OCSP responses | ||
| 40 | .Sh SYNOPSIS | ||
| 41 | .In openssl/ocsp.h | ||
| 42 | .Ft OCSP_RESPONSE * | ||
| 43 | .Fo d2i_OCSP_RESPONSE | ||
| 44 | .Fa "OCSP_RESPONSE **val_out" | ||
| 45 | .Fa "const unsigned char **der_in" | ||
| 46 | .Fa "long length" | ||
| 47 | .Fc | ||
| 48 | .Ft int | ||
| 49 | .Fo i2d_OCSP_RESPONSE | ||
| 50 | .Fa "OCSP_RESPONSE *val_in" | ||
| 51 | .Fa "unsigned char **der_out" | ||
| 52 | .Fc | ||
| 53 | .Ft OCSP_RESPBYTES * | ||
| 54 | .Fo d2i_OCSP_RESPBYTES | ||
| 55 | .Fa "OCSP_RESPBYTES **val_out" | ||
| 56 | .Fa "const unsigned char **der_in" | ||
| 57 | .Fa "long length" | ||
| 58 | .Fc | ||
| 59 | .Ft int | ||
| 60 | .Fo i2d_OCSP_RESPBYTES | ||
| 61 | .Fa "OCSP_RESPBYTES *val_in" | ||
| 62 | .Fa "unsigned char **der_out" | ||
| 63 | .Fc | ||
| 64 | .Ft OCSP_BASICRESP * | ||
| 65 | .Fo d2i_OCSP_BASICRESP | ||
| 66 | .Fa "OCSP_BASICRESP **val_out" | ||
| 67 | .Fa "const unsigned char **der_in" | ||
| 68 | .Fa "long length" | ||
| 69 | .Fc | ||
| 70 | .Ft int | ||
| 71 | .Fo i2d_OCSP_BASICRESP | ||
| 72 | .Fa "OCSP_BASICRESP *val_in" | ||
| 73 | .Fa "unsigned char **der_out" | ||
| 74 | .Fc | ||
| 75 | .Ft OCSP_RESPDATA * | ||
| 76 | .Fo d2i_OCSP_RESPDATA | ||
| 77 | .Fa "OCSP_RESPDATA **val_out" | ||
| 78 | .Fa "const unsigned char **der_in" | ||
| 79 | .Fa "long length" | ||
| 80 | .Fc | ||
| 81 | .Ft int | ||
| 82 | .Fo i2d_OCSP_RESPDATA | ||
| 83 | .Fa "OCSP_RESPDATA *val_in" | ||
| 84 | .Fa "unsigned char **der_out" | ||
| 85 | .Fc | ||
| 86 | .Ft OCSP_RESPID * | ||
| 87 | .Fo d2i_OCSP_RESPID | ||
| 88 | .Fa "OCSP_RESPID **val_out" | ||
| 89 | .Fa "const unsigned char **der_in" | ||
| 90 | .Fa "long length" | ||
| 91 | .Fc | ||
| 92 | .Ft int | ||
| 93 | .Fo i2d_OCSP_RESPID | ||
| 94 | .Fa "OCSP_RESPID *val_in" | ||
| 95 | .Fa "unsigned char **der_out" | ||
| 96 | .Fc | ||
| 97 | .Ft OCSP_SINGLERESP * | ||
| 98 | .Fo d2i_OCSP_SINGLERESP | ||
| 99 | .Fa "OCSP_SINGLERESP **val_out" | ||
| 100 | .Fa "const unsigned char **der_in" | ||
| 101 | .Fa "long length" | ||
| 102 | .Fc | ||
| 103 | .Ft int | ||
| 104 | .Fo i2d_OCSP_SINGLERESP | ||
| 105 | .Fa "OCSP_SINGLERESP *val_in" | ||
| 106 | .Fa "unsigned char **der_out" | ||
| 107 | .Fc | ||
| 108 | .Ft OCSP_CERTSTATUS * | ||
| 109 | .Fo d2i_OCSP_CERTSTATUS | ||
| 110 | .Fa "OCSP_CERTSTATUS **val_out" | ||
| 111 | .Fa "const unsigned char **der_in" | ||
| 112 | .Fa "long length" | ||
| 113 | .Fc | ||
| 114 | .Ft int | ||
| 115 | .Fo i2d_OCSP_CERTSTATUS | ||
| 116 | .Fa "OCSP_CERTSTATUS *val_in" | ||
| 117 | .Fa "unsigned char **der_out" | ||
| 118 | .Fc | ||
| 119 | .Ft OCSP_REVOKEDINFO * | ||
| 120 | .Fo d2i_OCSP_REVOKEDINFO | ||
| 121 | .Fa "OCSP_REVOKEDINFO **val_out" | ||
| 122 | .Fa "const unsigned char **der_in" | ||
| 123 | .Fa "long length" | ||
| 124 | .Fc | ||
| 125 | .Ft int | ||
| 126 | .Fo i2d_OCSP_REVOKEDINFO | ||
| 127 | .Fa "OCSP_REVOKEDINFO *val_in" | ||
| 128 | .Fa "unsigned char **der_out" | ||
| 129 | .Fc | ||
| 130 | .Ft OCSP_CRLID * | ||
| 131 | .Fo d2i_OCSP_CRLID | ||
| 132 | .Fa "OCSP_CRLID **val_out" | ||
| 133 | .Fa "const unsigned char **der_in" | ||
| 134 | .Fa "long length" | ||
| 135 | .Fc | ||
| 136 | .Ft int | ||
| 137 | .Fo i2d_OCSP_CRLID | ||
| 138 | .Fa "OCSP_CRLID *val_in" | ||
| 139 | .Fa "unsigned char **der_out" | ||
| 140 | .Fc | ||
| 141 | .Sh DESCRIPTION | ||
| 142 | Theses functions decode and encode ASN.1 structures used for OCSP | ||
| 143 | responses. | ||
| 144 | For details about the semantics, examples, caveats, and bugs, see | ||
| 145 | .Xr ASN1_item_d2i 3 . | ||
| 146 | .Pp | ||
| 147 | .Fn d2i_OCSP_RESPONSE | ||
| 148 | and | ||
| 149 | .Fn i2d_OCSP_RESPONSE | ||
| 150 | decode and encode an ASN.1 | ||
| 151 | .Vt OCSPResponse | ||
| 152 | structure defined in RFC 6960 section 4.2.1. | ||
| 153 | .Pp | ||
| 154 | .Fn d2i_OCSP_RESPBYTES | ||
| 155 | and | ||
| 156 | .Fn i2d_OCSP_RESPBYTES | ||
| 157 | decode and encode an ASN.1 | ||
| 158 | .Vt ResponseBytes | ||
| 159 | structure defined in RFC 6960 section 4.2.1. | ||
| 160 | .Pp | ||
| 161 | .Fn d2i_OCSP_BASICRESP | ||
| 162 | and | ||
| 163 | .Fn i2d_OCSP_BASICRESP | ||
| 164 | decode and encode an ASN.1 | ||
| 165 | .Vt BasicOCSPResponse | ||
| 166 | structure defined in RFC 6960 section 4.2.1. | ||
| 167 | .Pp | ||
| 168 | .Fn d2i_OCSP_RESPDATA | ||
| 169 | and | ||
| 170 | .Fn i2d_OCSP_RESPDATA | ||
| 171 | decode and encode an ASN.1 | ||
| 172 | .Vt ResponseData | ||
| 173 | structure defined in RFC 6960 section 4.2.1. | ||
| 174 | .Pp | ||
| 175 | .Fn d2i_OCSP_RESPID | ||
| 176 | and | ||
| 177 | .Fn i2d_OCSP_RESPID | ||
| 178 | decode and encode an ASN.1 | ||
| 179 | .Vt ResponderID | ||
| 180 | structure defined in RFC 6960 section 4.2.1. | ||
| 181 | .Pp | ||
| 182 | .Fn d2i_OCSP_SINGLERESP | ||
| 183 | and | ||
| 184 | .Fn i2d_OCSP_SINGLERESP | ||
| 185 | decode and encode an ASN.1 | ||
| 186 | .Vt SingleResponse | ||
| 187 | structure defined in RFC 6960 section 4.2.1. | ||
| 188 | .Pp | ||
| 189 | .Fn d2i_OCSP_CERTSTATUS | ||
| 190 | and | ||
| 191 | .Fn i2d_OCSP_CERTSTATUS | ||
| 192 | decode and encode an ASN.1 | ||
| 193 | .Vt CertStatus | ||
| 194 | structure defined in RFC 6960 section 4.2.1. | ||
| 195 | .Pp | ||
| 196 | .Fn d2i_OCSP_REVOKEDINFO | ||
| 197 | and | ||
| 198 | .Fn i2d_OCSP_REVOKEDINFO | ||
| 199 | decode and encode an ASN.1 | ||
| 200 | .Vt RevokedInfo | ||
| 201 | structure defined in RFC 6960 section 4.2.1. | ||
| 202 | .Pp | ||
| 203 | .Fn d2i_OCSP_CRLID | ||
| 204 | and | ||
| 205 | .Fn i2d_OCSP_CRLID | ||
| 206 | decode and encode an ASN.1 | ||
| 207 | .Vt CrlID | ||
| 208 | structure defined in RFC 6960 section 4.4.2. | ||
| 209 | .Sh RETURN VALUES | ||
| 210 | .Fn d2i_OCSP_RESPONSE , | ||
| 211 | .Fn d2i_OCSP_RESPBYTES , | ||
| 212 | .Fn d2i_OCSP_BASICRESP , | ||
| 213 | .Fn d2i_OCSP_RESPDATA , | ||
| 214 | .Fn d2i_OCSP_RESPID , | ||
| 215 | .Fn d2i_OCSP_SINGLERESP , | ||
| 216 | .Fn d2i_OCSP_CERTSTATUS , | ||
| 217 | .Fn d2i_OCSP_REVOKEDINFO , | ||
| 218 | and | ||
| 219 | .Fn d2i_OCSP_CRLID | ||
| 220 | return an object of the respective type or | ||
| 221 | .Dv NULL | ||
| 222 | if an error occurs. | ||
| 223 | .Pp | ||
| 224 | .Fn i2d_OCSP_RESPONSE , | ||
| 225 | .Fn i2d_OCSP_RESPBYTES , | ||
| 226 | .Fn i2d_OCSP_BASICRESP , | ||
| 227 | .Fn i2d_OCSP_RESPDATA , | ||
| 228 | .Fn i2d_OCSP_RESPID , | ||
| 229 | .Fn i2d_OCSP_SINGLERESP , | ||
| 230 | .Fn i2d_OCSP_CERTSTATUS , | ||
| 231 | .Fn i2d_OCSP_REVOKEDINFO , | ||
| 232 | and | ||
| 233 | .Fn i2d_OCSP_CRLID | ||
| 234 | return the number of bytes successfully encoded or a negative value | ||
| 235 | if an error occurs. | ||
| 236 | .Sh SEE ALSO | ||
| 237 | .Xr ASN1_item_d2i 3 , | ||
| 238 | .Xr OCSP_CRLID_new 3 , | ||
| 239 | .Xr OCSP_RESPONSE_new 3 , | ||
| 240 | .Xr OCSP_SINGLERESP_new 3 | ||
| 241 | .Sh STANDARDS | ||
| 242 | RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate | ||
| 243 | Status Protocol, section 4.2: Response Syntax | ||
