Changeset 70c2d86 in mod_gnutls for include/mod_gnutls.h.in
- Timestamp:
- Jan 11, 2013, 12:55:20 AM (8 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, upstream
- Children:
- 3f5c713, ec06980
- Parents:
- 3e94bd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/mod_gnutls.h.in
r3e94bd3 r70c2d86 73 73 { 74 74 int client_verify_mode; 75 const char* lua_bytecode; 76 apr_size_t lua_bytecode_len; 75 77 } mgs_dirconf_rec; 78 79 80 /* The maximum number of client CA certificates allowed. 81 */ 82 #define MAX_CA_CRTS 128 83 #define MAX_CIPHERS 16 76 84 77 85 typedef struct 78 86 { 79 87 gnutls_certificate_credentials_t certs; 88 gnutls_srp_server_credentials_t srp_creds; 89 gnutls_anon_server_credentials_t anon_creds; 80 90 char* cert_cn; 81 91 gnutls_x509_crt_t cert_x509; 82 92 gnutls_x509_privkey_t privkey_x509; 83 93 int enabled; 84 int ciphers[16]; 85 int key_exchange[16]; 86 int macs[16]; 87 int protocol[16]; 88 int compression[16]; 89 int cert_types[16]; 90 apr_time_t cache_timeout; 94 /* whether to send the PEM encoded certificates 95 * to CGIs 96 */ 97 int export_certificates_enabled; 98 int ciphers[MAX_CIPHERS]; 99 int key_exchange[MAX_CIPHERS]; 100 int macs[MAX_CIPHERS]; 101 int protocol[MAX_CIPHERS]; 102 int compression[MAX_CIPHERS]; 103 int cert_types[MAX_CIPHERS]; apr_time_t cache_timeout; 91 104 mgs_cache_e cache_type; 92 105 const char* cache_config; 93 106 const char* rsa_params_file; 94 107 const char* dh_params_file; 108 const char* srp_tpasswd_file; 109 const char* srp_tpasswd_conf_file; 110 gnutls_x509_crt_t ca_list[MAX_CA_CRTS]; 111 unsigned int ca_list_size; 95 112 int client_verify_mode; 96 113 } mgs_srvconf_rec; … … 213 230 char *str, int strsize); 214 231 232 /** 233 * Convert a time_t into a Null Terminated String 234 * @param t time_t time 235 * @param str Location to store the Hex Encoded String 236 * @param strsize The Maximum Length that can be stored in str 237 */ 238 char *mgs_time2sz(time_t t, char *str, int strsize); 239 215 240 216 241 /* Configuration Functions */ 217 242 243 const char *mgs_set_srp_tpasswd_conf_file(cmd_parms * parms, void *dummy, 244 const char *arg); 245 const char *mgs_set_srp_tpasswd_file(cmd_parms * parms, void *dummy, 246 const char *arg); 247 const char *mgs_set_dh_file(cmd_parms * parms, void *dummy, 248 const char *arg); 249 const char *mgs_set_rsa_export_file(cmd_parms * parms, void *dummy, 250 const char *arg); 218 251 const char *mgs_set_cert_file(cmd_parms * parms, void *dummy, 219 252 const char *arg); … … 236 269 const char *mgs_set_enabled(cmd_parms * parms, void *dummy, 237 270 const char *arg); 238 271 const char *mgs_set_export_certificates_enabled(cmd_parms * parms, void *dummy, 272 const char *arg); 273 const char *mgs_set_ciphers(cmd_parms * parms, void *dummy, 274 const char *arg); 275 const char *mgs_set_kx(cmd_parms * parms, void *dummy, 276 const char *arg); 277 const char *mgs_set_mac(cmd_parms * parms, void *dummy, 278 const char *arg); 279 const char *mgs_set_compression(cmd_parms * parms, void *dummy, 280 const char *arg); 281 const char *mgs_set_protocols(cmd_parms * parms, void *dummy, 282 const char *arg); 283 284 const char *mgs_set_require_section(cmd_parms *cmd, 285 void *mconfig, const char *arg); 239 286 void *mgs_config_server_create(apr_pool_t * p, server_rec * s); 240 287 288 void *mgs_config_dir_merge(apr_pool_t *p, void *basev, void *addv); 289 241 290 void *mgs_config_dir_create(apr_pool_t *p, char *dir); 291 292 const char *mgs_set_require_bytecode(cmd_parms *cmd, 293 void *mconfig, const char *arg); 242 294 243 295 mgs_srvconf_rec* mgs_find_sni_server(gnutls_session_t session); … … 264 316 int mgs_hook_authz(request_rec *r); 265 317 318 int mgs_authz_lua(request_rec* r); 319 266 320 #endif /* __mod_gnutls_h_inc */
Note: See TracChangeset
for help on using the changeset viewer.