.\"
.\" Created: Sat Apr 22 23:55:14 1995 ylo
.\"
-.\" $Id: ssh-keygen.1,v 1.13 2000/04/12 21:47:51 aaron Exp $
+.\" $Id: ssh-keygen.1,v 1.14 2000/04/26 21:55:04 deraadt Exp $
.\"
.Dd September 25, 1999
.Dt SSH-KEYGEN 1
.Nm ssh-keygen
.Fl l
.Op Fl f Ar keyfile
+.Nm ssh-keygen
+.Fl R
.Sh DESCRIPTION
.Nm
generates and manages authentication keys for
Provides the new passphrase.
.It Fl P Ar passphrase
Provides the (old) passphrase.
+.It Fl R
+If RSA support is functional, immediately exits with code 0. If RSA
+support is not functional, exits with code 1. This flag will be
+removed once the RSA patent expires.
.El
.Sh FILES
.Bl -tag -width Ds
*/
#include "includes.h"
-RCSID("$Id: ssh-keygen.c,v 1.19 2000/04/26 20:56:29 markus Exp $");
+RCSID("$Id: ssh-keygen.c,v 1.20 2000/04/26 21:55:04 deraadt Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
exit(1);
}
- while ((opt = getopt(ac, av, "dqpclxXyb:f:P:N:C:")) != EOF) {
+ while ((opt = getopt(ac, av, "dqpclRxXyb:f:P:N:C:")) != EOF) {
switch (opt) {
case 'b':
bits = atoi(optarg);
quiet = 1;
break;
+ case 'R':
+ if (rsa_alive() == 0)
+ exit(1);
+ else
+ exit(0);
+ break;
+
case 'x':
convert_to_ssh2 = 1;
break;