comparison svr-authpubkey.c @ 1286:7d02b83c61fd coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Fri, 18 Mar 2016 22:47:33 +0800
parents 9169e4e7cbee
children 750ec4ec4cbe 0d889b068123
comparison
equal deleted inserted replaced
1261:770e14154da3 1286:7d02b83c61fd
70 #define MIN_AUTHKEYS_LINE 10 /* "ssh-rsa AB" - short but doesn't matter */ 70 #define MIN_AUTHKEYS_LINE 10 /* "ssh-rsa AB" - short but doesn't matter */
71 #define MAX_AUTHKEYS_LINE 4200 /* max length of a line in authkeys */ 71 #define MAX_AUTHKEYS_LINE 4200 /* max length of a line in authkeys */
72 72
73 static int checkpubkey(char* algo, unsigned int algolen, 73 static int checkpubkey(char* algo, unsigned int algolen,
74 unsigned char* keyblob, unsigned int keybloblen); 74 unsigned char* keyblob, unsigned int keybloblen);
75 static int checkpubkeyperms(); 75 static int checkpubkeyperms(void);
76 static void send_msg_userauth_pk_ok(char* algo, unsigned int algolen, 76 static void send_msg_userauth_pk_ok(char* algo, unsigned int algolen,
77 unsigned char* keyblob, unsigned int keybloblen); 77 unsigned char* keyblob, unsigned int keybloblen);
78 static int checkfileperm(char * filename); 78 static int checkfileperm(char * filename);
79 79
80 /* process a pubkey auth request, sending success or failure message as 80 /* process a pubkey auth request, sending success or failure message as