summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-08-23 17:35:14 +0100
committerMatt Caswell <matt@openssl.org>2016-08-23 20:23:28 +0100
commiteb96e8b5fd1ad4eeae0b0330ca465ca462e0f6c1 (patch)
treec3aa827b731c59af870df98c97941da8f79aa985 /crypto
parent63e27d4d0f3ff698013dd8f5c5b71f923366c288 (diff)
Document that o2i_SCT_signature can leave the SCT in an inconsistent state
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ct/ct_locl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ct/ct_locl.h b/crypto/ct/ct_locl.h
index b65df5a57d..7adc4961b3 100644
--- a/crypto/ct/ct_locl.h
+++ b/crypto/ct/ct_locl.h
@@ -192,6 +192,8 @@ __owur int i2o_SCT_signature(const SCT *sct, unsigned char **out);
* |in| will be advanced to the end of the signature if parsing succeeds.
* |len| should be the length of the signature in |in|.
* Returns the number of bytes parsed, or a negative integer if an error occurs.
+* If an error occurs, the SCT's signature NID may be updated whilst the
+* signature field itself remains unset.
*/
__owur int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len);