]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
In FIPS mode the default cipher is AES.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2013 09:56:47 +0000 (10:56 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2013 10:41:45 +0000 (11:41 +0100)
src/certtool.c

index e7b79ef25ef65f852ca9739ce03e7d8550ea9eb6..5f92e7d2156e8d1c1199df87512f629623dad5d2 100644 (file)
@@ -139,7 +139,11 @@ generate_private_key_int(common_info_st * cinfo)
 static int cipher_to_flags(const char *cipher)
 {
        if (cipher == NULL) {
+#ifdef ENABLE_FIPS140
+               return GNUTLS_PKCS_USE_PBES2_AES_128;
+#else /* compatibility mode - most implementations don't support AES */
                return GNUTLS_PKCS_USE_PKCS12_ARCFOUR;
+#endif
        } else if (strcasecmp(cipher, "3des") == 0) {
                return GNUTLS_PKCS_USE_PBES2_3DES;
        } else if (strcasecmp(cipher, "3des-pkcs12") == 0) {