summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/rsa2x509.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-04-22 03:41:06 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-04-22 03:41:06 +0200
commit1cf3c4666943028cccfbbed8d2bae2fee30713a4 (patch)
treee5094d6a443d4f70ded329f89dbbbab838e64a98 /sys/src/cmd/auth/rsa2x509.c
parent17a67eeb652ebc76f6fc9f7f7bbed501187d24e1 (diff)
rsa: rename getkey() to getrsakey(), document rsa2csr in rsa(8)
Diffstat (limited to 'sys/src/cmd/auth/rsa2x509.c')
-rw-r--r--sys/src/cmd/auth/rsa2x509.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/auth/rsa2x509.c b/sys/src/cmd/auth/rsa2x509.c
index 3e07bb88f..e433fc9d8 100644
--- a/sys/src/cmd/auth/rsa2x509.c
+++ b/sys/src/cmd/auth/rsa2x509.c
@@ -38,12 +38,12 @@ main(int argc, char **argv)
if(argc != 1 && argc != 2)
usage();
- if((key = getkey(argc-1, argv+1, 1, nil)) == nil)
+ if((key = getrsakey(argc-1, argv+1, 1, nil)) == nil)
sysfatal("%r");
cert = X509rsagen(key, argv[0], valid, &len);
if(cert == nil)
- sysfatal("X509gen: %r");
+ sysfatal("X509rsagen: %r");
write(1, cert, len);
exits(0);