comparison common-runopts.c @ 842:7f8f8f2b7a35

Merge
author Matt Johnston <matt@ucc.asn.au>
date Fri, 01 Nov 2013 00:14:48 +0800
parents d4ce5269a439
children 220f55d540ae
comparison
equal deleted inserted replaced
839:33207ed1174b 842:7f8f8f2b7a35
33 33
34 runopts opts; /* GLOBAL */ 34 runopts opts; /* GLOBAL */
35 35
36 /* returns success or failure, and the keytype in *type. If we want 36 /* returns success or failure, and the keytype in *type. If we want
37 * to restrict the type, type can contain a type to return */ 37 * to restrict the type, type can contain a type to return */
38 int readhostkey(const char * filename, sign_key * hostkey, int *type) { 38 int readhostkey(const char * filename, sign_key * hostkey,
39 enum signkey_type *type) {
39 40
40 int ret = DROPBEAR_FAILURE; 41 int ret = DROPBEAR_FAILURE;
41 buffer *buf; 42 buffer *buf;
42 43
43 buf = buf_new(MAX_PRIVKEY_SIZE); 44 buf = buf_new(MAX_PRIVKEY_SIZE);