Skip to content

Commit

Permalink
Move VerificationContext enum definition to interface.
Browse files Browse the repository at this point in the history
Summary: This is more generically useful and was in the fizz namespace anyway.

Reviewed By: AjanthanAsogamoorthy

Differential Revision: D64761128

fbshipit-source-id: 77ae8fa4c65c9b710911c1e1c84b6911e6ad5be5
  • Loading branch information
Kyle Nekritz authored and facebook-github-bot committed Oct 24, 2024
1 parent 16d7b38 commit 1beec1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions fizz/extensions/javacrypto/JavaCryptoCertificateVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions fizz/protocol/CertificateVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 0 additions & 6 deletions fizz/protocol/DefaultCertificateVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1beec1c

Please sign in to comment.