summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@divmod.com>2011-05-17 15:49:10 -0400
committerJean-Paul Calderone <exarkun@divmod.com>2011-05-17 15:49:10 -0400
commitff404b84ff478309c182801333b5e786931c5a69 (patch)
treeb5a5b72ee1dcf408d743a5a5e07db56018cc2401
parent5d19052976902d4d76f2a7072cc876e97f7539d8 (diff)
downloadpyopenssl-ff404b84ff478309c182801333b5e786931c5a69.tar.gz
always braces, and cuddle them too
-rw-r--r--OpenSSL/crypto/x509.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c
index d62b504..f763695 100644
--- a/OpenSSL/crypto/x509.c
+++ b/OpenSSL/crypto/x509.c
@@ -519,6 +519,7 @@ crypto_X509_gmtime_adj_notAfter(crypto_X509Obj *self, PyObject *args)
return Py_None;
}
+
static char crypto_X509_get_signature_algorithm_doc[] = "\n\
Retrieve the signature algorithm used in the certificate\n\
\n\
@@ -528,13 +529,13 @@ Returns: None\n\
";
static PyObject *
-crypto_X509_get_signature_algorithm(crypto_X509Obj *self, PyObject *args)
-{
+crypto_X509_get_signature_algorithm(crypto_X509Obj *self, PyObject *args) {
ASN1_OBJECT *alg;
int nid;
- if (!PyArg_ParseTuple(args, ":get_signature_algorithm"))
+ if (!PyArg_ParseTuple(args, ":get_signature_algorithm")) {
return NULL;
+ }
alg = self->x509->cert_info->signature->algorithm;
nid = OBJ_obj2nid(alg);