diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ct/ct_local.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/libcrypto/ct/ct_local.h b/src/lib/libcrypto/ct/ct_local.h index ae750c786e..bfc074a13a 100644 --- a/src/lib/libcrypto/ct/ct_local.h +++ b/src/lib/libcrypto/ct/ct_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ct_local.h,v 1.6 2021/12/18 16:34:52 tb Exp $ */ | 1 | /* $OpenBSD: ct_local.h,v 1.7 2021/12/18 17:26:54 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Rob Percival (robpercival@google.com) for the OpenSSL project. | 3 | * Written by Rob Percival (robpercival@google.com) for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -232,24 +232,24 @@ int SCT_signature_is_complete(const SCT *sct); | |||
| 232 | */ | 232 | */ |
| 233 | 233 | ||
| 234 | /* | 234 | /* |
| 235 | * Serialize (to TLS format) an |sct| signature and write it to |out|. | 235 | * Serialize (to TLS format) an |sct| signature and write it to |out|. |
| 236 | * If |out| is null, no signature will be output but the length will be returned. | 236 | * If |out| is null, no signature will be output but the length will be returned. |
| 237 | * If |out| points to a null pointer, a string will be allocated to hold the | 237 | * If |out| points to a null pointer, a string will be allocated to hold the |
| 238 | * TLS-format signature. It is the responsibility of the caller to free it. | 238 | * TLS-format signature. It is the responsibility of the caller to free it. |
| 239 | * If |out| points to an allocated string, the signature will be written to it. | 239 | * If |out| points to an allocated string, the signature will be written to it. |
| 240 | * The length of the signature in TLS format will be returned. | 240 | * The length of the signature in TLS format will be returned. |
| 241 | */ | 241 | */ |
| 242 | int i2o_SCT_signature(const SCT *sct, unsigned char **out); | 242 | int i2o_SCT_signature(const SCT *sct, unsigned char **out); |
| 243 | 243 | ||
| 244 | /* | 244 | /* |
| 245 | * Parses an SCT signature in TLS format and populates the |sct| with it. | 245 | * Parses an SCT signature in TLS format and populates the |sct| with it. |
| 246 | * |in| should be a pointer to a string containing the TLS-format signature. | 246 | * |in| should be a pointer to a string containing the TLS-format signature. |
| 247 | * |in| will be advanced to the end of the signature if parsing succeeds. | 247 | * |in| will be advanced to the end of the signature if parsing succeeds. |
| 248 | * |len| should be the length of the signature in |in|. | 248 | * |len| should be the length of the signature in |in|. |
| 249 | * Returns the number of bytes parsed, or a negative integer if an error occurs. | 249 | * Returns the number of bytes parsed, or a negative integer if an error occurs. |
| 250 | * If an error occurs, the SCT's signature NID may be updated whilst the | 250 | * If an error occurs, the SCT's signature NID may be updated whilst the |
| 251 | * signature field itself remains unset. | 251 | * signature field itself remains unset. |
| 252 | */ | 252 | */ |
| 253 | int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len); | 253 | int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len); |
| 254 | 254 | ||
| 255 | /* | 255 | /* |
