X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=project.h;h=ec3c1559043d0484b1fe223d0798a531511fd71a;hp=0999e80d0852d2ba4e1ae9d6230187c9ba349891;hb=73c9fc709c9bc00e9b806da0abc5f45b8c5ffde7;hpb=f9b953ed3f2bc2de510352e56dfbf91efd19ac7e diff --git a/project.h b/project.h index 0999e80d..ec3c1559 100644 --- a/project.h +++ b/project.h @@ -75,6 +75,11 @@ #endif /* FEATURE_HTTPS_INSPECTION_MBEDTLS */ #ifdef FEATURE_HTTPS_INSPECTION_OPENSSL +#ifdef _WIN32 +#include +#undef X509_NAME +#undef X509_EXTENSIONS +#endif #include #include #include @@ -306,6 +311,7 @@ typedef struct { mbedtls_x509_crt server_cert; mbedtls_x509_crt ca_cert; mbedtls_pk_context prim_key; + int *ciphersuites_list; #if defined(MBEDTLS_SSL_CACHE_C) mbedtls_ssl_cache_context cache; @@ -318,7 +324,7 @@ typedef struct { * Struct of attributes necessary for TLS/SSL connection */ typedef struct { - SSL_CTX* ctx; + SSL_CTX *ctx; BIO *bio; } openssl_connection_attr; #endif /* FEATURE_HTTPS_INSPECTION_OPENSSL */ @@ -488,13 +494,6 @@ struct iob }; -/** - * Return the number of bytes in the I/O buffer associated with the passed - * I/O buffer. May be zero. - */ -#define IOB_PEEK(IOB) ((IOB->cur > IOB->eod) ? (IOB->eod - IOB->cur) : 0) - - /* Bits for csp->content_type bitmask: */ #define CT_TEXT 0x0001U /**< Suitable for pcrs filtering. */ #define CT_GIF 0x0002U /**< Suitable for GIF filtering. */ @@ -773,6 +772,9 @@ struct reusable_connection enum forwarder_type forwarder_type; char *gateway_host; int gateway_port; + char *auth_username; + char *auth_password; + char *forward_host; int forward_port; }; @@ -1587,6 +1589,9 @@ struct configuration_spec /** Directory for saving certificates and keys for each webpage **/ char *certificate_directory; + /** Cipher list to use **/ + char *cipher_list; + /** Filename of trusted CAs certificates **/ char * trusted_cas_file; #endif