X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=ssl_common.h;h=bd5ce0b6e7c545d8ee0cb5f312372a3c244888d0;hp=86dab981f3ff25ce8fcb32be330331354e453b53;hb=60513e33c518dd45644143581976e601d4d6aa60;hpb=f9b953ed3f2bc2de510352e56dfbf91efd19ac7e;ds=sidebyside diff --git a/ssl_common.h b/ssl_common.h index 86dab981..bd5ce0b6 100644 --- a/ssl_common.h +++ b/ssl_common.h @@ -2,7 +2,7 @@ #define SSL_COMMON_H_INCLUDED /********************************************************************* * -* File : $Source: /cvsroot/ijbswa/current/ssl.h,v $ +* File : $Source: /cvsroot/ijbswa/current/ssl_common.h,v $ * * Purpose : File with TLS/SSL extension. Contains methods for * creating, using and closing TLS/SSL connections that do @@ -45,7 +45,6 @@ #define CERT_PARAM_COUNTRY_FCODE "C" #define CERT_PARAM_COUNTRY_CODE "CZ" #define CERT_SUBJECT_PASSWORD "" -#define CERT_INFO_PREFIX "" /* * Properties of cert for generating @@ -74,5 +73,6 @@ extern unsigned long get_certificate_serial(struct client_state *csp); extern int get_certificate_valid_from_date(char *buffer, size_t buffer_size, const char *fmt); extern int get_certificate_valid_to_date(char *buffer, size_t buffer_size, const char *fmt); extern int host_is_ip_address(const char *host); +extern int enforce_sane_certificate_state(const char *certificate, const char *key); #endif /* ndef SSL_COMMON_H_INCLUDED */