summaryrefslogtreecommitdiff
path: root/authfile.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-09 01:42:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-09 01:42:01 +0000
commit664408d2a794806722aa3f321b92c7bdd667c42e (patch)
tree0dbce8250bc4d6325ed2f2b6950221a24d62dc2a /authfile.c
parent9d0c06667eb4ca616ffa690e88b9dd7c438e3103 (diff)
- markus@cvs.openbsd.org 2001/06/07 20:23:05
[authfd.c authfile.c channels.c kexdh.c kexgex.c packet.c ssh.c sshconnect.c sshconnect1.c] use xxx_put_cstring()
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/authfile.c b/authfile.c
index db6aed83e..c4da9aad3 100644
--- a/authfile.c
+++ b/authfile.c
@@ -36,7 +36,7 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39RCSID("$OpenBSD: authfile.c,v 1.35 2001/05/29 12:31:27 markus Exp $"); 39RCSID("$OpenBSD: authfile.c,v 1.36 2001/06/07 20:23:03 markus Exp $");
40 40
41#include <openssl/err.h> 41#include <openssl/err.h>
42#include <openssl/evp.h> 42#include <openssl/evp.h>
@@ -125,7 +125,7 @@ key_save_private_rsa1(Key *key, const char *filename, const char *passphrase,
125 buffer_put_int(&encrypted, BN_num_bits(key->rsa->n)); 125 buffer_put_int(&encrypted, BN_num_bits(key->rsa->n));
126 buffer_put_bignum(&encrypted, key->rsa->n); 126 buffer_put_bignum(&encrypted, key->rsa->n);
127 buffer_put_bignum(&encrypted, key->rsa->e); 127 buffer_put_bignum(&encrypted, key->rsa->e);
128 buffer_put_string(&encrypted, comment, strlen(comment)); 128 buffer_put_cstring(&encrypted, comment);
129 129
130 /* Allocate space for the private part of the key in the buffer. */ 130 /* Allocate space for the private part of the key in the buffer. */
131 buffer_append_space(&encrypted, &cp, buffer_len(&buffer)); 131 buffer_append_space(&encrypted, &cp, buffer_len(&buffer));