Lines Matching refs:value
191 static int cmd_SignatureAlgorithms(SSL_CONF_CTX *cctx, const char *value) in cmd_SignatureAlgorithms() argument
195 rv = SSL_set1_sigalgs_list(cctx->ssl, value); in cmd_SignatureAlgorithms()
198 rv = SSL_CTX_set1_sigalgs_list(cctx->ctx, value); in cmd_SignatureAlgorithms()
203 static int cmd_ClientSignatureAlgorithms(SSL_CONF_CTX *cctx, const char *value) in cmd_ClientSignatureAlgorithms() argument
207 rv = SSL_set1_client_sigalgs_list(cctx->ssl, value); in cmd_ClientSignatureAlgorithms()
210 rv = SSL_CTX_set1_client_sigalgs_list(cctx->ctx, value); in cmd_ClientSignatureAlgorithms()
214 static int cmd_Groups(SSL_CONF_CTX *cctx, const char *value) in cmd_Groups() argument
218 rv = SSL_set1_groups_list(cctx->ssl, value); in cmd_Groups()
221 rv = SSL_CTX_set1_groups_list(cctx->ctx, value); in cmd_Groups()
226 static int cmd_Curves(SSL_CONF_CTX *cctx, const char *value) in cmd_Curves() argument
228 return cmd_Groups(cctx, value); in cmd_Curves()
232 static int cmd_ECDHParameters(SSL_CONF_CTX *cctx, const char *value) in cmd_ECDHParameters() argument
238 && (OPENSSL_strcasecmp(value, "+automatic") == 0 in cmd_ECDHParameters()
239 || OPENSSL_strcasecmp(value, "automatic") == 0)) in cmd_ECDHParameters()
242 strcmp(value, "auto") == 0) in cmd_ECDHParameters()
246 if (strchr(value, ':') != NULL) in cmd_ECDHParameters()
250 rv = SSL_CTX_set1_groups_list(cctx->ctx, value); in cmd_ECDHParameters()
252 rv = SSL_set1_groups_list(cctx->ssl, value); in cmd_ECDHParameters()
257 static int cmd_CipherString(SSL_CONF_CTX *cctx, const char *value) in cmd_CipherString() argument
262 rv = SSL_CTX_set_cipher_list(cctx->ctx, value); in cmd_CipherString()
264 rv = SSL_set_cipher_list(cctx->ssl, value); in cmd_CipherString()
268 static int cmd_Ciphersuites(SSL_CONF_CTX *cctx, const char *value) in cmd_Ciphersuites() argument
273 rv = SSL_CTX_set_ciphersuites(cctx->ctx, value); in cmd_Ciphersuites()
275 rv = SSL_set_ciphersuites(cctx->ssl, value); in cmd_Ciphersuites()
279 static int cmd_Protocol(SSL_CONF_CTX *cctx, const char *value) in cmd_Protocol() argument
294 return CONF_parse_list(value, ',', 1, ssl_set_option_list, cctx); in cmd_Protocol()
302 static int protocol_from_string(const char *value) in protocol_from_string() argument
329 if (strcmp(versions[i].name, value) == 0) in protocol_from_string()
334 static int min_max_proto(SSL_CONF_CTX *cctx, const char *value, int *bound) in min_max_proto() argument
345 if ((new_version = protocol_from_string(value)) < 0) in min_max_proto()
357 static int cmd_MinProtocol(SSL_CONF_CTX *cctx, const char *value) in cmd_MinProtocol() argument
359 return min_max_proto(cctx, value, cctx->min_version); in cmd_MinProtocol()
369 static int cmd_MaxProtocol(SSL_CONF_CTX *cctx, const char *value) in cmd_MaxProtocol() argument
371 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
374 static int cmd_Options(SSL_CONF_CTX *cctx, const char *value) in cmd_Options() argument
409 if (value == NULL) in cmd_Options()
413 return CONF_parse_list(value, ',', 1, ssl_set_option_list, cctx); in cmd_Options()
416 static int cmd_VerifyMode(SSL_CONF_CTX *cctx, const char *value) in cmd_VerifyMode() argument
430 if (value == NULL) in cmd_VerifyMode()
434 return CONF_parse_list(value, ',', 1, ssl_set_option_list, cctx); in cmd_VerifyMode()
437 static int cmd_Certificate(SSL_CONF_CTX *cctx, const char *value) in cmd_Certificate() argument
442 rv = SSL_CTX_use_certificate_chain_file(cctx->ctx, value); in cmd_Certificate()
449 rv = SSL_use_certificate_chain_file(cctx->ssl, value); in cmd_Certificate()
459 *pfilename = OPENSSL_strdup(value); in cmd_Certificate()
467 static int cmd_PrivateKey(SSL_CONF_CTX *cctx, const char *value) in cmd_PrivateKey() argument
473 rv = SSL_CTX_use_PrivateKey_file(cctx->ctx, value, SSL_FILETYPE_PEM); in cmd_PrivateKey()
475 rv = SSL_use_PrivateKey_file(cctx->ssl, value, SSL_FILETYPE_PEM); in cmd_PrivateKey()
479 static int cmd_ServerInfoFile(SSL_CONF_CTX *cctx, const char *value) in cmd_ServerInfoFile() argument
483 rv = SSL_CTX_use_serverinfo_file(cctx->ctx, value); in cmd_ServerInfoFile()
532 static int cmd_ChainCAPath(SSL_CONF_CTX *cctx, const char *value) in cmd_ChainCAPath() argument
534 return do_store(cctx, NULL, value, NULL, 0); in cmd_ChainCAPath()
537 static int cmd_ChainCAFile(SSL_CONF_CTX *cctx, const char *value) in cmd_ChainCAFile() argument
539 return do_store(cctx, value, NULL, NULL, 0); in cmd_ChainCAFile()
542 static int cmd_ChainCAStore(SSL_CONF_CTX *cctx, const char *value) in cmd_ChainCAStore() argument
544 return do_store(cctx, NULL, NULL, value, 0); in cmd_ChainCAStore()
547 static int cmd_VerifyCAPath(SSL_CONF_CTX *cctx, const char *value) in cmd_VerifyCAPath() argument
549 return do_store(cctx, NULL, value, NULL, 1); in cmd_VerifyCAPath()
552 static int cmd_VerifyCAFile(SSL_CONF_CTX *cctx, const char *value) in cmd_VerifyCAFile() argument
554 return do_store(cctx, value, NULL, NULL, 1); in cmd_VerifyCAFile()
557 static int cmd_VerifyCAStore(SSL_CONF_CTX *cctx, const char *value) in cmd_VerifyCAStore() argument
559 return do_store(cctx, NULL, NULL, value, 1); in cmd_VerifyCAStore()
562 static int cmd_RequestCAFile(SSL_CONF_CTX *cctx, const char *value) in cmd_RequestCAFile() argument
568 return SSL_add_file_cert_subjects_to_stack(cctx->canames, value); in cmd_RequestCAFile()
571 static int cmd_ClientCAFile(SSL_CONF_CTX *cctx, const char *value) in cmd_ClientCAFile() argument
573 return cmd_RequestCAFile(cctx, value); in cmd_ClientCAFile()
576 static int cmd_RequestCAPath(SSL_CONF_CTX *cctx, const char *value) in cmd_RequestCAPath() argument
582 return SSL_add_dir_cert_subjects_to_stack(cctx->canames, value); in cmd_RequestCAPath()
585 static int cmd_ClientCAPath(SSL_CONF_CTX *cctx, const char *value) in cmd_ClientCAPath() argument
587 return cmd_RequestCAPath(cctx, value); in cmd_ClientCAPath()
590 static int cmd_RequestCAStore(SSL_CONF_CTX *cctx, const char *value) in cmd_RequestCAStore() argument
596 return SSL_add_store_cert_subjects_to_stack(cctx->canames, value); in cmd_RequestCAStore()
599 static int cmd_ClientCAStore(SSL_CONF_CTX *cctx, const char *value) in cmd_ClientCAStore() argument
601 return cmd_RequestCAStore(cctx, value); in cmd_ClientCAStore()
604 static int cmd_DHParameters(SSL_CONF_CTX *cctx, const char *value) in cmd_DHParameters() argument
616 if (BIO_read_filename(in, value) <= 0) in cmd_DHParameters()
660 static int cmd_RecordPadding(SSL_CONF_CTX *cctx, const char *value) in cmd_RecordPadding() argument
667 copy = OPENSSL_strdup(value); in cmd_RecordPadding()
699 static int cmd_NumTickets(SSL_CONF_CTX *cctx, const char *value) in cmd_NumTickets() argument
702 int num_tickets = atoi(value); in cmd_NumTickets()
714 int (*cmd) (SSL_CONF_CTX *cctx, const char *value);
945 int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value) in SSL_CONF_cmd() argument
964 if (value == NULL) in SSL_CONF_cmd()
966 rv = runcmd->cmd(cctx, value); in SSL_CONF_cmd()
976 value != NULL ? value : "<EMPTY>"); in SSL_CONF_cmd()