parent
89b0bd66e2
commit
c111660896
|
@ -3,6 +3,9 @@
|
||||||
- stevesk@cvs.openbsd.org 2001/03/26 15:47:59
|
- stevesk@cvs.openbsd.org 2001/03/26 15:47:59
|
||||||
[ssh.1]
|
[ssh.1]
|
||||||
document more defaults; misc. cleanup. ok markus@
|
document more defaults; misc. cleanup. ok markus@
|
||||||
|
- markus@cvs.openbsd.org 2001/03/26 23:12:42
|
||||||
|
[authfile.c]
|
||||||
|
KNF
|
||||||
|
|
||||||
20010328
|
20010328
|
||||||
- (djm) Reorder tests and library inclusion for Krb4/AFS to try to
|
- (djm) Reorder tests and library inclusion for Krb4/AFS to try to
|
||||||
|
@ -4741,4 +4744,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1026 2001/03/29 00:27:11 mouring Exp $
|
$Id: ChangeLog,v 1.1027 2001/03/29 00:28:37 mouring Exp $
|
||||||
|
|
18
authfile.c
18
authfile.c
|
@ -36,7 +36,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: authfile.c,v 1.29 2001/03/26 08:07:07 markus Exp $");
|
RCSID("$OpenBSD: authfile.c,v 1.30 2001/03/26 23:12:42 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
@ -185,14 +185,14 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
switch (key->type) {
|
switch (key->type) {
|
||||||
case KEY_DSA:
|
case KEY_DSA:
|
||||||
success = PEM_write_DSAPrivateKey(fp, key->dsa,
|
success = PEM_write_DSAPrivateKey(fp, key->dsa,
|
||||||
cipher, passphrase, len, NULL, NULL);
|
cipher, passphrase, len, NULL, NULL);
|
||||||
break;
|
break;
|
||||||
case KEY_RSA:
|
case KEY_RSA:
|
||||||
success = PEM_write_RSAPrivateKey(fp, key->rsa,
|
success = PEM_write_RSAPrivateKey(fp, key->rsa,
|
||||||
cipher, passphrase, len, NULL, NULL);
|
cipher, passphrase, len, NULL, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return success;
|
return success;
|
||||||
|
|
Loading…
Reference in New Issue