Mercurial > dropbear
comparison signkey.c @ 855:04ede40a529a
- Some fixes for old compilers like tru64 v4 from Daniel Richard G.
- Don't warn about blocking random device for prngd
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 14 Nov 2013 21:36:45 +0800 |
parents | 7540c0822374 |
children | c19acba28590 |
comparison
equal
deleted
inserted
replaced
854:ccc76acaf4c7 | 855:04ede40a529a |
---|---|
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; | 511 unsigned int bloblen; |
512 unsigned char * type_name = NULL; | 512 unsigned char * type_name = NULL; |
513 unsigned int type_name_len = 0; | 513 unsigned int type_name_len = 0; |
514 enum signkey_type type; | |
514 | 515 |
515 TRACE(("enter buf_verify")) | 516 TRACE(("enter buf_verify")) |
516 | 517 |
517 bloblen = buf_getint(buf); | 518 bloblen = buf_getint(buf); |
518 type_name = buf_getstring(buf, &type_name_len); | 519 type_name = buf_getstring(buf, &type_name_len); |
519 enum signkey_type type = signkey_type_from_name(type_name, type_name_len); | 520 type = signkey_type_from_name(type_name, type_name_len); |
520 m_free(type_name); | 521 m_free(type_name); |
521 | 522 |
522 #ifdef DROPBEAR_DSS | 523 #ifdef DROPBEAR_DSS |
523 if (type == DROPBEAR_SIGNKEY_DSS) { | 524 if (type == DROPBEAR_SIGNKEY_DSS) { |
524 if (key->dsskey == NULL) { | 525 if (key->dsskey == NULL) { |