diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-31 10:04:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-31 10:04:45 -0400 |
commit | 28f9b68e8763b2e5c4e7b0ed9170f41ead15feb1 (patch) | |
tree | 45f7e0a5799cfaaeb84ebf7d5788d5d34edb0b4c /src/common/tortls.h | |
parent | 5ca0d6daf077a17d8b82f5749e12d624ceebe5cb (diff) | |
download | tor-28f9b68e8763b2e5c4e7b0ed9170f41ead15feb1.tar.gz tor-28f9b68e8763b2e5c4e7b0ed9170f41ead15feb1.zip |
Move "change cert expiration and re-sign" fn into tortls.c
This lets test_link_handshake stop including openssl headers.
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index a848039887..fd0186cf90 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -187,6 +187,11 @@ extern tor_tls_context_t *client_tls_context; extern uint16_t v2_cipher_list[]; extern uint64_t total_bytes_written_over_tls; extern uint64_t total_bytes_written_by_tls; + +STATIC tor_x509_cert_t *tor_x509_cert_replace_expiration( + const tor_x509_cert_t *inp, + time_t new_expiration_time, + crypto_pk_t *signing_key); #endif #endif /* endif TORTLS_PRIVATE */ |