forked from rpms/openssl
26 lines
711 B
Diff
26 lines
711 B
Diff
|
diff -up openssl-1.0.0c/apps/pkcs12.c.fips-default openssl-1.0.0c/apps/pkcs12.c
|
||
|
--- openssl-1.0.0c/apps/pkcs12.c.fips-default 2009-07-27 23:08:45.000000000 +0200
|
||
|
+++ openssl-1.0.0c/apps/pkcs12.c 2011-02-04 15:25:38.000000000 +0100
|
||
|
@@ -67,6 +67,9 @@
|
||
|
#include <openssl/err.h>
|
||
|
#include <openssl/pem.h>
|
||
|
#include <openssl/pkcs12.h>
|
||
|
+#ifdef OPENSSL_FIPS
|
||
|
+#include <openssl/fips.h>
|
||
|
+#endif
|
||
|
|
||
|
#define PROG pkcs12_main
|
||
|
|
||
|
@@ -130,6 +133,11 @@ int MAIN(int argc, char **argv)
|
||
|
|
||
|
apps_startup();
|
||
|
|
||
|
+#ifdef OPENSSL_FIPS
|
||
|
+ if (FIPS_mode())
|
||
|
+ cert_pbe = key_pbe; /* cannot use RC2 in the FIPS mode */
|
||
|
+#endif
|
||
|
+
|
||
|
enc = EVP_des_ede3_cbc();
|
||
|
if (bio_err == NULL ) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
|
||
|
|