diff options
author | daurnimator <quae@daurnimator.com> | 2017-10-26 17:50:33 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-10-26 17:50:33 +1100 |
commit | 1b899c92e0dc535cbbb195f48c8ac64446e993c1 (patch) | |
tree | 388b222bd906bddbb1857dc92c964b85ab50f469 /src | |
parent | 352ce60b8ba43458f44aec4e5990644109ca9ba3 (diff) | |
download | luaossl-1b899c92e0dc535cbbb195f48c8ac64446e993c1.tar.gz luaossl-1b899c92e0dc535cbbb195f48c8ac64446e993c1.tar.bz2 luaossl-1b899c92e0dc535cbbb195f48c8ac64446e993c1.zip |
src/openssl.c: Fix indentation
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/openssl.c b/src/openssl.c index 18a59ad..5ff80fe 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1714,12 +1714,12 @@ static void compat_RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) { #if !HAVE_SSL_GET_CLIENT_RANDOM #define SSL_get_client_random(...) EXPAND( compat_SSL_get_client_random(__VA_ARGS__) ) static size_t compat_SSL_get_client_random(const SSL *ssl, unsigned char *out, size_t outlen) { - if (outlen == 0) - return sizeof(ssl->s3->client_random); - if (outlen > sizeof(ssl->s3->client_random)) - outlen = sizeof(ssl->s3->client_random); - memcpy(out, ssl->s3->client_random, outlen); - return outlen; + if (outlen == 0) + return sizeof(ssl->s3->client_random); + if (outlen > sizeof(ssl->s3->client_random)) + outlen = sizeof(ssl->s3->client_random); + memcpy(out, ssl->s3->client_random, outlen); + return outlen; } #endif @@ -1848,9 +1848,8 @@ static void (compat_X509_STORE_free)(X509_STORE *store) { int i; i = CRYPTO_add(&store->references, -1, CRYPTO_LOCK_X509_STORE); - - if (i > 0) - return; + if (i > 0) + return; (X509_STORE_free)(store); } /* compat_X509_STORE_free() */ |