Minor formatting fixes Re-ran clang-format on those regions, now that clang-format knows about STACK_OF(T). Change-Id: Ied350343b8aaef0dc25dbe3f215c1fae25af90c4 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/66147 Auto-Submit: David Benjamin <davidben@google.com> Commit-Queue: Adam Langley <agl@google.com> Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 6b366bb..2f1264a 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h
@@ -1154,8 +1154,8 @@ // the return value is undefined and, even if not NULL, the stack itself may // contain nullptrs. Thus you shouldn't mix this function with // non-|CRYPTO_BUFFER| functions for manipulating the chain.) -OPENSSL_EXPORT const STACK_OF(CRYPTO_BUFFER)* - SSL_CTX_get0_chain(const SSL_CTX *ctx); +OPENSSL_EXPORT const STACK_OF(CRYPTO_BUFFER) *SSL_CTX_get0_chain( + const SSL_CTX *ctx); // SSL_get0_chain returns the list of |CRYPTO_BUFFER|s that were set by // |SSL_set_chain_and_key|, unless they have been discarded. Reference counts
diff --git a/ssl/ssl_cert.cc b/ssl/ssl_cert.cc index 4be3481..1b6b574 100644 --- a/ssl/ssl_cert.cc +++ b/ssl/ssl_cert.cc
@@ -887,11 +887,11 @@ privkey_method); } -const STACK_OF(CRYPTO_BUFFER)* SSL_CTX_get0_chain(const SSL_CTX *ctx) { +const STACK_OF(CRYPTO_BUFFER) *SSL_CTX_get0_chain(const SSL_CTX *ctx) { return ctx->cert->chain.get(); } -const STACK_OF(CRYPTO_BUFFER) * SSL_get0_chain(const SSL *ssl) { +const STACK_OF(CRYPTO_BUFFER) *SSL_get0_chain(const SSL *ssl) { if (!ssl->config) { return nullptr; }