]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated test for the universal lib constructor
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 30 Nov 2013 18:17:52 +0000 (19:17 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 30 Nov 2013 18:17:52 +0000 (19:17 +0100)
tests/global-init.c

index 92a6190621fba4c455c4fc2fc237319bd2c86b9e..e985428112612e82a7d96f75d1b4953b2f6ea285 100644 (file)
@@ -40,7 +40,6 @@ void doit(void)
 {
        int ret;
 
-#ifdef ENABLE_FIPS140
        /* In FIPS140 a constructor is being used for MINIMAL so
         * the following should succeed.
         */
@@ -48,12 +47,6 @@ void doit(void)
        if (ret < 0) {
                fail("Could not initialize: %d\n", __LINE__);
        }
-#else
-       ret = gnutls_global_init2(GNUTLS_GLOBAL_INIT_PKCS11);
-       if (ret != GNUTLS_E_INVALID_REQUEST) {
-               fail("Initialization should have failed: %d\n", __LINE__);
-       }
-#endif
        
        ret = gnutls_global_init();
        if (ret < 0) {