6#ifndef TOR_X509_INTERNAL_H
7#define TOR_X509_INTERNAL_H
21#define TOR_X509_PAST_SLOP (2*24*60*60)
26#define TOR_X509_FUTURE_SLOP (30*24*60*60)
32 const char *cname_sign,
33 unsigned int cert_lifetime));
34MOCK_DECL(tor_x509_cert_t *, tor_x509_cert_new,
35 (tor_x509_cert_impl_t *x509_cert));
38 const tor_x509_cert_impl_t *cert,
41 int future_tolerance);
43void tor_x509_cert_impl_free_(tor_x509_cert_impl_t *cert);
44#define tor_x509_cert_impl_free(cert) \
45 FREE_AND_NULL(tor_x509_cert_impl_t, tor_x509_cert_impl_free_, (cert))
46tor_x509_cert_impl_t *tor_x509_cert_impl_dup_(tor_x509_cert_impl_t *cert);
50#define tor_x509_cert_set_cached_der_encoding(cert) (0)
Headers for crypto_rsa.c.
Macros to implement mocking and selective exposure for the test code.
#define MOCK_DECL(rv, funcname, arglist)
int tor_x509_check_cert_lifetime_internal(int severity, const X509 *cert, time_t now, int past_tolerance, int future_tolerance)
X509 * tor_tls_create_certificate(crypto_pk_t *rsa, crypto_pk_t *rsa_sign, const char *cname, const char *cname_sign, unsigned int cert_lifetime)
int tor_x509_cert_set_cached_der_encoding(tor_x509_cert_t *cert)