add Suite B verification flags
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 16:57:39 +0000 (16:57 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 16:57:39 +0000 (16:57 +0000)
apps/apps.c

index 24a493e0eb1bed7c41f5c799dfcf5dd5d31c4f01..761a8c7f279baa5fe7a813023a6b329697e526ac 100644 (file)
@@ -2386,6 +2386,12 @@ int args_verify(char ***pargs, int *pargc,
                flags |= X509_V_FLAG_CHECK_SS_SIGNATURE;
        else if (!strcmp(arg, "-trusted_first"))
                flags |= X509_V_FLAG_TRUSTED_FIRST;
+       else if (!strcmp(arg, "-suiteB_128_only"))
+               flags |= X509_V_FLAG_SUITEB_128_LOS_ONLY;
+       else if (!strcmp(arg, "-suiteB_128"))
+               flags |= X509_V_FLAG_SUITEB_128_LOS;
+       else if (!strcmp(arg, "-suiteB_192"))
+               flags |= X509_V_FLAG_SUITEB_192_LOS;
        else if (!strcmp(arg, "-partial_chain"))
                flags |= X509_V_FLAG_PARTIAL_CHAIN;
        else