[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/24] pki_gcrypt: Fix warning about not handled values in switch


/home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c: In function
‘pki_key_compare’:
/home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c:1082:5: warning:
enumeration value ‘SSH_KEYTYPE_DSS_CERT01’ not handled in switch
[-Wswitch]
     switch (k1->type) {
          ^
/home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c:1082:5: warning:
enumeration value ‘SSH_KEYTYPE_RSA_CERT01’ not handled in switch
[-Wswitch]

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 src/pki_gcrypt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c
index 50362c2..cff4023 100644
--- a/src/pki_gcrypt.c
+++ b/src/pki_gcrypt.c
@@ -1135,6 +1135,8 @@ int pki_key_compare(const ssh_key k1,
 		/* ed25519 keys handled globaly */
 		return 0;
         case SSH_KEYTYPE_ECDSA:
+        case SSH_KEYTYPE_DSS_CERT01:
+        case SSH_KEYTYPE_RSA_CERT01:
         case SSH_KEYTYPE_UNKNOWN:
             return 1;
     }
-- 
2.5.0


Archive administrator: postmaster@lists.cynapses.org