summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2013-08-23 15:41:38 -0400
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2013-08-23 15:41:38 -0400
commitbb04db80e51283ff7f2a9619dd9015c48d8f1af2 (patch)
tree60ba84f1050f52624c4465fc10faa38279dba38d
parent30f80c95a322dd48479507519608b473618f4972 (diff)
downloadpyopenssl-bb04db80e51283ff7f2a9619dd9015c48d8f1af2.tar.gz
some more formatting fixes
-rw-r--r--OpenSSL/crypto/x509ext.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSSL/crypto/x509ext.c b/OpenSSL/crypto/x509ext.c
index 1eedf39..9e0b7d3 100644
--- a/OpenSSL/crypto/x509ext.c
+++ b/OpenSSL/crypto/x509ext.c
@@ -258,8 +258,7 @@ crypto_X509Extension_str_subjectAltName(crypto_X509ExtensionObj *self, BIO *bio)
if (method->it) {
names = (GENERAL_NAMES*)(ASN1_item_d2i(NULL, &p, length,
ASN1_ITEM_ptr(method->it)));
- }
- else {
+ } else {
names = (GENERAL_NAMES*)(method->d2i(NULL, &p, length));
}
if (names == NULL) {
@@ -322,9 +321,7 @@ crypto_X509Extension_str(crypto_X509ExtensionObj *self) {
exception_from_error_queue(crypto_Error);
return NULL;
}
- }
- else if (!X509V3_EXT_print(bio, self->x509_extension, 0, 0))
- {
+ } else if (!X509V3_EXT_print(bio, self->x509_extension, 0, 0)) {
BIO_free(bio);
exception_from_error_queue(crypto_Error);
return NULL;
@@ -343,7 +340,7 @@ PyTypeObject crypto_X509Extension_Type = {
"X509Extension",
sizeof(crypto_X509ExtensionObj),
0,
- (destructor)crypto_X509Extension_dealloc,
+ (destructor)crypto_X509Extension_dealloc,
NULL, /* print */
NULL, /* getattr */
NULL, /* setattr (setattrfunc)crypto_X509Name_setattr, */