summaryrefslogtreecommitdiff
path: root/src/lib/tls/x509.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-12 18:01:14 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-21 12:25:33 -0400
commitb9ca8f2356a98630a262951486cd10436963e169 (patch)
treef99e32f00b5fa3eebafd408db66dc9e5f95a0d03 /src/lib/tls/x509.h
parent108d9879eb814bc06095a1819d98b1c7c9a38e88 (diff)
downloadtor-b9ca8f2356a98630a262951486cd10436963e169.tar.gz
tor-b9ca8f2356a98630a262951486cd10436963e169.zip
Extract internal-only parts of x509.h
Diffstat (limited to 'src/lib/tls/x509.h')
-rw-r--r--src/lib/tls/x509.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/tls/x509.h b/src/lib/tls/x509.h
index f75d15d7e9..ccaa92184e 100644
--- a/src/lib/tls/x509.h
+++ b/src/lib/tls/x509.h
@@ -40,15 +40,6 @@ void tor_tls_pick_certificate_lifetime(time_t now,
time_t *start_time_out,
time_t *end_time_out);
-MOCK_DECL(tor_x509_cert_impl_t *, tor_tls_create_certificate,
- (crypto_pk_t *rsa,
- crypto_pk_t *rsa_sign,
- const char *cname,
- const char *cname_sign,
- unsigned int cert_lifetime));
-MOCK_DECL(tor_x509_cert_t *, tor_x509_cert_new,
- (tor_x509_cert_impl_t *x509_cert));
-
#ifdef TOR_UNIT_TESTS
tor_x509_cert_t *tor_x509_cert_replace_expiration(
const tor_x509_cert_t *inp,
@@ -63,8 +54,6 @@ void tor_x509_cert_free_(tor_x509_cert_t *cert);
FREE_AND_NULL(tor_x509_cert_t, tor_x509_cert_free_, (c))
tor_x509_cert_t *tor_x509_cert_decode(const uint8_t *certificate,
size_t certificate_len);
-const tor_x509_cert_impl_t *tor_x509_cert_get_impl(
- const tor_x509_cert_t *cert);
void tor_x509_cert_get_der(const tor_x509_cert_t *cert,
const uint8_t **encoded_out, size_t *size_out);