Mercurial > dropbear
comparison signkey.c @ 1681:435cfb9ec96e
send and handle SSH_MSG_EXT_INFO only at the correct point
- other fixes for rsa pubkey auth
- only include ext-info handling when rsa pubkey auth is compiled
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 24 May 2020 14:16:58 +0800 |
parents | d5cdc60db08e |
children | d5d25ce2a2ed |
comparison
equal
deleted
inserted
replaced
1680:5e763ad6e2e0 | 1681:435cfb9ec96e |
---|---|
137 if (namelen == strlen(SSH_SIGNATURE_RSA_SHA256) | 137 if (namelen == strlen(SSH_SIGNATURE_RSA_SHA256) |
138 && memcmp(name, SSH_SIGNATURE_RSA_SHA256, namelen) == 0) { | 138 && memcmp(name, SSH_SIGNATURE_RSA_SHA256, namelen) == 0) { |
139 return DROPBEAR_SIGNATURE_RSA_SHA256; | 139 return DROPBEAR_SIGNATURE_RSA_SHA256; |
140 } | 140 } |
141 #endif | 141 #endif |
142 #if DROPBEAR_RSA_SHA256 | 142 #if DROPBEAR_RSA_SHA1 |
143 if (namelen == strlen(SSH_SIGNKEY_RSA) | 143 if (namelen == strlen(SSH_SIGNKEY_RSA) |
144 && memcmp(name, SSH_SIGNKEY_RSA, namelen) == 0) { | 144 && memcmp(name, SSH_SIGNKEY_RSA, namelen) == 0) { |
145 return DROPBEAR_SIGNATURE_RSA_SHA1; | 145 return DROPBEAR_SIGNATURE_RSA_SHA1; |
146 } | 146 } |
147 #endif | 147 #endif |