From 1beec1c99f4d9fa4c98b69c791c15fb4898c7c00 Mon Sep 17 00:00:00 2001 From: Kyle Nekritz Date: Thu, 24 Oct 2024 10:46:03 -0700 Subject: [PATCH] Move VerificationContext enum definition to interface. Summary: This is more generically useful and was in the fizz namespace anyway. Reviewed By: AjanthanAsogamoorthy Differential Revision: D64761128 fbshipit-source-id: 77ae8fa4c65c9b710911c1e1c84b6911e6ad5be5 --- fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h | 6 ------ fizz/protocol/CertificateVerifier.h | 6 ++++++ fizz/protocol/DefaultCertificateVerifier.h | 6 ------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h b/fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h index e5c50737b1e..8b8d7b24872 100644 --- a/fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h +++ b/fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h @@ -12,12 +12,6 @@ namespace fizz { -/** - * Which context we are verifying in (ie client context means we are a client - * verifying server certificates). - */ -enum class VerificationContext { Client, Server }; - /** * Certificate verifier that verifies a certificate against a trusted * certificate store diff --git a/fizz/protocol/CertificateVerifier.h b/fizz/protocol/CertificateVerifier.h index 9df51eea027..5961878b5b9 100644 --- a/fizz/protocol/CertificateVerifier.h +++ b/fizz/protocol/CertificateVerifier.h @@ -13,6 +13,12 @@ namespace fizz { +/** + * Which context we are verifying in (eg client context means we are a client + * verifying server certificates). + */ +enum class VerificationContext { Client, Server }; + class FizzVerificationException : public FizzException { public: FizzVerificationException( diff --git a/fizz/protocol/DefaultCertificateVerifier.h b/fizz/protocol/DefaultCertificateVerifier.h index 90e94bf1da3..6e3eac5ea69 100644 --- a/fizz/protocol/DefaultCertificateVerifier.h +++ b/fizz/protocol/DefaultCertificateVerifier.h @@ -13,12 +13,6 @@ namespace fizz { -/** - * Which context we are verifying in (ie client context means we are a client - * verifying server certificates). - */ -enum class VerificationContext { Client, Server }; - /** * Certificate verifier that verifies a certificate against a trusted * certificate store