Lines Matching defs:dh_file
72 const char *dh_file, const char *dh_special, int tmp_rsa,
129 " -dh_file <path> (a PEM file containing DH parameters to use)\n"
148 "(2) Either dh_file or dh_special can be used to specify where DH parameters\n"
309 const char *dh_file = def_dh_file;
414 } else if(strcmp(*argv, "-dh_file") == 0) {
416 return usage("-dh_file requires an argument", 0);
418 return usage("cannot mix -dh_file with "
421 dh_file = *argv;
426 if(dh_file)
427 return usage("cannot mix -dh_file with "
495 cacert, cert, key, dcert, dkey, cipher_list, dh_file,
677 static int ctx_set_dh(SSL_CTX *ctx, const char *dh_file, const char *dh_special)
708 /* So, we're loading dh_file */
709 if((fp = fopen(dh_file, "r")) == NULL) {
711 dh_file);
718 dh_file);
721 fprintf(stderr, "Info, using DH parameters from file '%s'\n", dh_file);
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))