]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pki: Fix formatting and use `else if` to make Coverity happy
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2022 13:07:37 +0000 (15:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2022 13:07:37 +0000 (15:07 +0200)
src/pki/commands/scep.c

index 7554179940a88687409e63650a61ca11fd5bc1cb..78102e460c270043fd877224f1107e0874506c76 100644 (file)
@@ -166,11 +166,12 @@ static int scep()
                                {
                                        pss = TRUE;
                                }
-                               if (streq(arg, "pkcs1"))
+                               else if (streq(arg, "pkcs1"))
                                {
                                        pss = FALSE;
                                }
-                               else {
+                               else
+                               {
                                        error = "invalid RSA padding";
                                        goto usage;
                                }