Lines Matching refs:dh_special
90 const char *dh_special, int tmp_rsa,
154 " -dh_special <NULL|generate|standard> (see below: def=NULL)\n"
172 "(2) Either dh_file or dh_special can be used to specify where DH parameters\n"
173 " will be obtained from (or '-dh_special NULL' for the default choice) but\n"
174 " you cannot specify both. For dh_special, 'generate' will create new DH\n"
196 * Default DH parameters for use with "-dh_special standard" ... stolen
277 static int parse_dh_special(const char *s, const char **dh_special)
281 *dh_special = s;
284 fprintf(stderr, "Error, '%s' is an invalid value for 'dh_special'\n", s);
340 const char *dh_special = def_dh_special;
460 if (dh_special)
461 return usage("cannot mix -dh_file with " "-dh_special", 0);
466 } else if (strcmp(*argv, "-dh_special") == 0) {
468 return usage("-dh_special requires an argument", 0);
470 return usage("cannot mix -dh_file with " "-dh_special", 0);
473 if (!parse_dh_special(*argv, &dh_special))
541 cipher_list, dh_file, dh_special,
726 const char *dh_special)
731 if (dh_special) {
732 if (strcmp(dh_special, "NULL") == 0)
734 if (strcmp(dh_special, "standard") == 0) {
743 if (strcmp(dh_special, "generate") != 0)
786 const char *dh_special, int tmp_rsa,
852 /* dh_file & dh_special */
853 if ((dh_file || dh_special) && !ctx_set_dh(ctx, dh_file, dh_special))