comparison svr-authpubkey.c @ 68:eee77ac31ccc

cleaning up the pubkey defines
author Matt Johnston <matt@ucc.asn.au>
date Thu, 12 Aug 2004 14:56:22 +0000
parents 095d689fed16
children b0316ce64e4b
comparison
equal deleted inserted replaced
67:86725004a0ea 68:eee77ac31ccc
28 #include "session.h" 28 #include "session.h"
29 #include "dbutil.h" 29 #include "dbutil.h"
30 #include "buffer.h" 30 #include "buffer.h"
31 #include "signkey.h" 31 #include "signkey.h"
32 #include "auth.h" 32 #include "auth.h"
33 #include "authpubkey.h"
34 #include "ssh.h" 33 #include "ssh.h"
35 #include "packet.h" 34 #include "packet.h"
36 #include "algo.h" 35 #include "algo.h"
37 36
38 #ifdef DROPBEAR_PUBKEY_AUTH 37 #ifdef ENABLE_SVR_PUBKEY_AUTH
39 38
40 #define MIN_AUTHKEYS_LINE 10 /* "ssh-rsa AB" - short but doesn't matter */ 39 #define MIN_AUTHKEYS_LINE 10 /* "ssh-rsa AB" - short but doesn't matter */
41 #define MAX_AUTHKEYS_LINE 4200 /* max length of a line in authkeys */ 40 #define MAX_AUTHKEYS_LINE 4200 /* max length of a line in authkeys */
42 41
43 static int checkpubkey(unsigned char* algo, unsigned int algolen, 42 static int checkpubkey(unsigned char* algo, unsigned int algolen,
334 TRACE(("leave checkfileperm: success")); 333 TRACE(("leave checkfileperm: success"));
335 return DROPBEAR_SUCCESS; 334 return DROPBEAR_SUCCESS;
336 } 335 }
337 336
338 337
339 #endif /* DROPBEAR_PUBKEY_AUTH */ 338 #endif