comparison gensignkey.c @ 857:c19acba28590

use oldstyle comments
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Nov 2013 22:03:30 +0800
parents 04ede40a529a
children 220f55d540ae
comparison
equal deleted inserted replaced
856:f56c41030c15 857:c19acba28590
8 #include "random.h" 8 #include "random.h"
9 9
10 #define RSA_DEFAULT_SIZE 2048 10 #define RSA_DEFAULT_SIZE 2048
11 #define DSS_DEFAULT_SIZE 1024 11 #define DSS_DEFAULT_SIZE 1024
12 12
13 // Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE 13 /* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
14 static int buf_writefile(buffer * buf, const char * filename) { 14 static int buf_writefile(buffer * buf, const char * filename) {
15 int ret = DROPBEAR_FAILURE; 15 int ret = DROPBEAR_FAILURE;
16 int fd = -1; 16 int fd = -1;
17 17
18 fd = open(filename, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 18 fd = open(filename, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);