char *passin = NULL, *passout = NULL;
char *p;
char *subj = NULL;
- const EVP_MD *md_alg=NULL,*digest=EVP_md5();
+ const EVP_MD *md_alg=NULL,*digest;
unsigned long chtype = MBSTRING_ASC;
#ifndef MONOLITH
char *to_free;
informat=FORMAT_PEM;
outformat=FORMAT_PEM;
+#ifdef OPENSSL_FIPS
+ if (FIPS_mode())
+ digest = EVP_sha1();
+ else
+#endif
+ digest = EVP_md5();
+
prog=argv[0];
argc--;
argv++;
X509_REQ *rq=NULL;
int fingerprint=0;
char buf[256];
- const EVP_MD *md_alg,*digest=EVP_md5();
+ const EVP_MD *md_alg,*digest;
CONF *extconf = NULL;
char *extsect = NULL, *extfile = NULL, *passin = NULL, *passargin = NULL;
int need_rand = 0;
if (ctx == NULL) goto end;
X509_STORE_set_verify_cb_func(ctx,callb);
+#ifdef OPENSSL_FIPS
+ if (FIPS_mode())
+ digest = EVP_sha1();
+ else
+#endif
+ digest = EVP_md5();
+
argc--;
argv++;
num=0;