pki: Use correct enum value to initialize ID type in --keyid command
authorTobias Brunner <tobias@strongswan.org>
Wed, 13 Oct 2021 13:17:09 +0000 (15:17 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 13 Oct 2021 13:17:09 +0000 (15:17 +0200)
src/pki/commands/keyid.c

index 10651f5..45b5e36 100644 (file)
@@ -76,7 +76,7 @@ static int keyid()
                ID_TYPE_ALL,
                ID_TYPE_SPK,
                ID_TYPE_SPKI,
-       } id_type = FORMAT_PRETTY;
+       } id_type = ID_TYPE_ALL;
        char *file = NULL, *keyid = NULL;
        void *cred;
        chunk_t id, spk = chunk_empty, spki = chunk_empty;