summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/rsa2x509.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-10-06 20:55:57 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-10-06 20:55:57 +0200
commit0a3695ba844972e332dc28efa1ecb232a8eff9ba (patch)
treeac607a411d232179f077fabae3065f74f27e7903 /sys/src/cmd/auth/rsa2x509.c
parent8a67560183b3b726c827bcac02632b2b8e3ba59d (diff)
rsa: add auth/rsa2asn1, check write error in auth/rsa2x509 and auth/rsa2pub, document in rsa(8)
Diffstat (limited to 'sys/src/cmd/auth/rsa2x509.c')
-rw-r--r--sys/src/cmd/auth/rsa2x509.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/cmd/auth/rsa2x509.c b/sys/src/cmd/auth/rsa2x509.c
index e433fc9d8..4e87556af 100644
--- a/sys/src/cmd/auth/rsa2x509.c
+++ b/sys/src/cmd/auth/rsa2x509.c
@@ -45,6 +45,8 @@ main(int argc, char **argv)
if(cert == nil)
sysfatal("X509rsagen: %r");
- write(1, cert, len);
- exits(0);
+ if(write(1, cert, len) != len)
+ sysfatal("write: %r");
+
+ exits(nil);
}