summaryrefslogtreecommitdiff
path: root/ssh-dss.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-dss.c')
-rw-r--r--ssh-dss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-dss.c b/ssh-dss.c
index 5cf007667..22fffa02a 100644
--- a/ssh-dss.c
+++ b/ssh-dss.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: ssh-dss.c,v 1.7 2001/06/06 23:13:54 markus Exp $"); 26RCSID("$OpenBSD: ssh-dss.c,v 1.8 2001/09/17 19:27:15 stevesk Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/evp.h> 29#include <openssl/evp.h>
@@ -133,14 +133,14 @@ ssh_dss_verify(
133 /* ietf-drafts */ 133 /* ietf-drafts */
134 char *ktype; 134 char *ktype;
135 buffer_init(&b); 135 buffer_init(&b);
136 buffer_append(&b, (char *) signature, signaturelen); 136 buffer_append(&b, signature, signaturelen);
137 ktype = buffer_get_string(&b, NULL); 137 ktype = buffer_get_string(&b, NULL);
138 if (strcmp("ssh-dss", ktype) != 0) { 138 if (strcmp("ssh-dss", ktype) != 0) {
139 error("ssh_dss_verify: cannot handle type %s", ktype); 139 error("ssh_dss_verify: cannot handle type %s", ktype);
140 buffer_free(&b); 140 buffer_free(&b);
141 return -1; 141 return -1;
142 } 142 }
143 sigblob = (u_char *)buffer_get_string(&b, &len); 143 sigblob = buffer_get_string(&b, &len);
144 rlen = buffer_len(&b); 144 rlen = buffer_len(&b);
145 if(rlen != 0) { 145 if(rlen != 0) {
146 error("remaining bytes in signature %d", rlen); 146 error("remaining bytes in signature %d", rlen);