Mercurial > dropbear
comparison signkey.c @ 864:30ab30e46452
Fix some warnings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 25 Nov 2013 23:08:33 +0800 |
parents | c19acba28590 |
children | 25692c60479e |
comparison
equal
deleted
inserted
replaced
863:14342451d3df | 864:30ab30e46452 |
---|---|
506 * If FAILURE is returned, the position of | 506 * If FAILURE is returned, the position of |
507 * buf is undefined. If SUCCESS is returned, buf will be positioned after the | 507 * buf is undefined. If SUCCESS is returned, buf will be positioned after the |
508 * signature blob */ | 508 * signature blob */ |
509 int buf_verify(buffer * buf, sign_key *key, buffer *data_buf) { | 509 int buf_verify(buffer * buf, sign_key *key, buffer *data_buf) { |
510 | 510 |
511 unsigned int bloblen; | |
512 unsigned char * type_name = NULL; | 511 unsigned char * type_name = NULL; |
513 unsigned int type_name_len = 0; | 512 unsigned int type_name_len = 0; |
514 enum signkey_type type; | 513 enum signkey_type type; |
515 | 514 |
516 TRACE(("enter buf_verify")) | 515 TRACE(("enter buf_verify")) |
517 | 516 |
518 bloblen = buf_getint(buf); | 517 buf_getint(buf); /* blob length */ |
519 type_name = buf_getstring(buf, &type_name_len); | 518 type_name = buf_getstring(buf, &type_name_len); |
520 type = signkey_type_from_name(type_name, type_name_len); | 519 type = signkey_type_from_name(type_name, type_name_len); |
521 m_free(type_name); | 520 m_free(type_name); |
522 | 521 |
523 #ifdef DROPBEAR_DSS | 522 #ifdef DROPBEAR_DSS |