Lines Matching refs:dh_special
72 const char *dh_file, const char *dh_special, int tmp_rsa,
130 " -dh_special <NULL|generate|standard> (see below: def=NULL)\n"
148 "(2) Either dh_file or dh_special can be used to specify where DH parameters\n"
149 " will be obtained from (or '-dh_special NULL' for the default choice) but\n"
150 " you cannot specify both. For dh_special, 'generate' will create new DH\n"
171 /* Default DH parameters for use with "-dh_special standard" ... stolen striaght
247 static int parse_dh_special(const char *s, const char **dh_special)
251 *dh_special = s;
254 fprintf(stderr, "Error, '%s' is an invalid value for 'dh_special'\n", s);
310 const char *dh_special = def_dh_special;
417 if(dh_special)
419 "-dh_special", 0);
423 } else if(strcmp(*argv, "-dh_special") == 0) {
425 return usage("-dh_special requires an argument", 0);
428 "-dh_special", 0);
430 if(!parse_dh_special(*argv, &dh_special))
496 dh_special, tmp_rsa, ctx_options, out_state, out_verify,
677 static int ctx_set_dh(SSL_CTX *ctx, const char *dh_file, const char *dh_special)
682 if(dh_special) {
683 if(strcmp(dh_special, "NULL") == 0)
685 if(strcmp(dh_special, "standard") == 0) {
694 if(strcmp(dh_special, "generate") != 0)
731 const char *dh_file, const char *dh_special, int tmp_rsa,
799 /* dh_file & dh_special */
800 if((dh_file || dh_special) && !ctx_set_dh(ctx, dh_file, dh_special))