summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/i2d_pr.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-18 00:10:09 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-18 00:10:09 +0000
commit354af17288498026713696092004d5f870122d20 (patch)
tree14b371c2dae140eed5d11a2d973e5fde869d59b1 /lib/libcrypto/asn1/i2d_pr.c
parenteb74fae5997a015328501cbe38bdcaaca56a4eaa (diff)
putting most of the braces in the right column is the very least we can do.
Diffstat (limited to 'lib/libcrypto/asn1/i2d_pr.c')
-rw-r--r--lib/libcrypto/asn1/i2d_pr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/asn1/i2d_pr.c b/lib/libcrypto/asn1/i2d_pr.c
index e398b626661..9332c4d2ec5 100644
--- a/lib/libcrypto/asn1/i2d_pr.c
+++ b/lib/libcrypto/asn1/i2d_pr.c
@@ -63,18 +63,18 @@
#include "asn1_locl.h"
int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
- {
+{
if (a->ameth && a->ameth->old_priv_encode)
- {
+ {
return a->ameth->old_priv_encode(a, pp);
- }
+ }
if (a->ameth && a->ameth->priv_encode) {
PKCS8_PRIV_KEY_INFO *p8 = EVP_PKEY2PKCS8(a);
int ret = i2d_PKCS8_PRIV_KEY_INFO(p8,pp);
PKCS8_PRIV_KEY_INFO_free(p8);
return ret;
- }
+}
ASN1err(ASN1_F_I2D_PRIVATEKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE);
return(-1);
- }
+}