summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-08-23 18:31:16 +0100
committerMatt Caswell <matt@openssl.org>2016-08-23 20:31:03 +0100
commitfa515410aae2cf4ced2cf41cc6715fee6c6db344 (patch)
treefed32871aa35ccc2aae4bc6622587bd43ddd731b /crypto
parenteb96e8b5fd1ad4eeae0b0330ca465ca462e0f6c1 (diff)
SCT_set_source resets validation_status
This makes it consistent with all of the other SCT setters. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ct/ct_sct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ct/ct_sct.c b/crypto/ct/ct_sct.c
index 65a20c669b..67adcfaa52 100644
--- a/crypto/ct/ct_sct.c
+++ b/crypto/ct/ct_sct.c
@@ -262,6 +262,7 @@ sct_source_t SCT_get_source(const SCT *sct)
int SCT_set_source(SCT *sct, sct_source_t source)
{
sct->source = source;
+ sct->validation_status = SCT_VALIDATION_STATUS_NOT_SET;
switch (source) {
case SCT_SOURCE_TLS_EXTENSION:
case SCT_SOURCE_OCSP_STAPLED_RESPONSE: