diff options
author | tb <> | 2021-12-18 17:26:54 +0000 |
---|---|---|
committer | tb <> | 2021-12-18 17:26:54 +0000 |
commit | f7d305590a6bc15a77694a68f5c4e5913c8aadf5 (patch) | |
tree | cf3b3bca9b781f97f9b0644683eea951d0df266b | |
parent | a8c00fc65440138a52588aadfce6635eb1384218 (diff) | |
download | openbsd-f7d305590a6bc15a77694a68f5c4e5913c8aadf5.tar.gz openbsd-f7d305590a6bc15a77694a68f5c4e5913c8aadf5.tar.bz2 openbsd-f7d305590a6bc15a77694a68f5c4e5913c8aadf5.zip |
KNF two comments
-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 | /* |