Clang-format all of pki. Before making further changes. This pass is without InsertBraces, will follow up with InsertBraces for separate review Bug: 659 Change-Id: Ie311dcd932aec5f98c16573f9326b1918a639adf Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/64067 Commit-Queue: David Benjamin <davidben@google.com> Auto-Submit: Bob Beck <bbe@google.com> Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/pki/cert_status_flags.h b/pki/cert_status_flags.h index 9f7d979..cd66547 100644 --- a/pki/cert_status_flags.h +++ b/pki/cert_status_flags.h
@@ -5,8 +5,8 @@ #ifndef BSSL_PKI_CERT_STATUS_FLAGS_H_ #define BSSL_PKI_CERT_STATUS_FLAGS_H_ -#include "fillins/openssl_util.h" #include <stdint.h> +#include "fillins/openssl_util.h" @@ -20,7 +20,7 @@ // MACRO_STYLE for continuity, instead of renaming them to kConstantStyle as // befits most static consts. #define CERT_STATUS_FLAG(label, value) \ - CertStatus static const CERT_STATUS_##label = value; + CertStatus static const CERT_STATUS_##label = value; #include "cert_status_flags_list.h" #undef CERT_STATUS_FLAG @@ -33,17 +33,17 @@ // Maps a network error code to the equivalent certificate status flag. If // the error code is not a certificate error, it is mapped to 0. -// Note: It is not safe to go bssl::CertStatus -> bssl::Error -> bssl::CertStatus, -// as the CertStatus contains more information. Conversely, going from -// bssl::Error -> bssl::CertStatus -> bssl::Error is not a lossy function, for the -// same reason. -// To avoid incorrect use, this is only exported for unittest helpers. +// Note: It is not safe to go bssl::CertStatus -> bssl::Error -> +// bssl::CertStatus, as the CertStatus contains more information. Conversely, +// going from bssl::Error -> bssl::CertStatus -> bssl::Error is not a lossy +// function, for the same reason. To avoid incorrect use, this is only exported +// for unittest helpers. OPENSSL_EXPORT CertStatus MapNetErrorToCertStatus(int error); // Maps the most serious certificate error in the certificate status flags // to the equivalent network error code. OPENSSL_EXPORT int MapCertStatusToNetError(CertStatus cert_status); -} // namespace net +} // namespace bssl #endif // BSSL_PKI_CERT_STATUS_FLAGS_H_