X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=project.h;h=cbceaecd411c2dec8835ab1c2cc316b150bddcec;hp=20f693ac2af6f8b8b1bf901675df9ac065829cdb;hb=5d02a9c9cd4b14cca5eeffc07cedebed21032486;hpb=2ce0e12445718fed0b44598b70dd18525fb6620b diff --git a/project.h b/project.h index 20f693ac..cbceaecd 100644 --- a/project.h +++ b/project.h @@ -348,33 +348,10 @@ struct http_request #ifdef FEATURE_HTTPS_FILTERING /* - * Properties of cert for generating - */ -typedef struct{ - char *issuer_crt; /* filename of the issuer certificate */ - char *subject_key; /* filename of the subject key file */ - char *issuer_key; /* filename of the issuer key file */ - const char *subject_pwd; /* password for the subject key file */ - const char *issuer_pwd; /* password for the issuer key file */ - char *output_file; /* where to store the constructed key file */ - const char *subject_name; /* subject name for certificate */ - char issuer_name[ISSUER_NAME_BUF_SIZE]; /* issuer name for certificate */ - const char *not_before; /* validity period not before */ - const char *not_after; /* validity period not after */ - const char *serial; /* serial number string */ - int is_ca; /* is a CA certificate */ - int max_pathlen; /* maximum CA path length */ -} cert_options; - -/* - * Properties of key for generating + * If this macro is defined, mutexes count for generating + * private keys is changed from 65536 to 32. */ -typedef struct{ - mbedtls_pk_type_t type; /* type of key to generate */ - int rsa_keysize; /* length of key in bits */ - char *key_file_path; /* filename of the key file */ -} key_options; - +#define LIMIT_MUTEX_NUMBER /* * Struct for linked list containing certificates */ @@ -382,7 +359,7 @@ typedef struct certs_chain { char text_buf[CERT_INFO_BUF_SIZE]; /* text info about properties of certificate */ char file_buf[CERT_FILE_BUF_SIZE]; /* buffer for whole certificate - format to save in file */ struct certs_chain *next; /* next certificate in chain of trust */ -}certs_chain_t; +} certs_chain_t; #endif /** @@ -981,7 +958,7 @@ struct reusable_connection * Maximum number of actions/filter files. This limit is arbitrary - it's just used * to size an array. */ -#define MAX_AF_FILES 30 +#define MAX_AF_FILES 100 /** * Maximum number of sockets to listen to. This limit is arbitrary - it's just used