diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2015-09-17 14:28:12 +0200 |
---|---|---|
committer | Fabiano Fidêncio <fidencio@redhat.com> | 2016-01-19 11:31:07 +0100 |
commit | 234b05708c0db97c783ad7293149b53d1a626930 (patch) | |
tree | 9c84f3a095abd5e3a874ce596c88213c280a18e1 /src/pki_gcrypt.c | |
parent | e368d01385c2d1a6c729964befc11e80010693ba (diff) | |
download | libssh-234b05708c0db97c783ad7293149b53d1a626930.tar.gz libssh-234b05708c0db97c783ad7293149b53d1a626930.tar.xz libssh-234b05708c0db97c783ad7293149b53d1a626930.zip |
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@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki_gcrypt.c')
-rw-r--r-- | src/pki_gcrypt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index 50362c2b..cff40235 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; } |