proxygen
TestUtil.cpp File Reference
#include <fizz/crypto/test/TestUtil.h>
#include <folly/String.h>
#include <folly/ssl/OpenSSLCertUtils.h>
#include <sodium/randombytes.h>

Go to the source code of this file.

Namespaces

 fizz
 
 fizz::test
 

Functions

EvpPkeyUniquePtr fizz::test::getPrivateKey (StringPiece key)
 
EvpPkeyUniquePtr fizz::test::getPublicKey (StringPiece key)
 
std::unique_ptr< folly::IOBuffizz::test::toIOBuf (folly::StringPiece hexData)
 
folly::ssl::X509UniquePtr fizz::test::getCert (folly::StringPiece cert)
 
std::unique_ptr< folly::IOBuffizz::test::getCertData (folly::StringPiece cert)
 
void fizz::test::useMockRandom ()
 

Variables

static struct randombytes_implementation fizz::test::mockRandom