Skip to content

Commit

Permalink
Rename CxPlatPlat to CxPlat (microsoft#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
anrossi authored Feb 24, 2021
1 parent 9556496 commit f0be283
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/inc/msquichelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ GetServerConfigurationFromArgs(

#ifdef QUIC_TEST_APIS
} else if (GetValue(argc, argv, "selfsign")) {
Config = CxPlatPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
Config = CxPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
if (!Config) {
return nullptr;
}
Expand Down Expand Up @@ -489,7 +489,7 @@ GetServerConfigurationFromArgs(

#ifdef QUIC_TEST_APIS
if (!Configuration && Config != &Helper.CredConfig) {
CxPlatPlatFreeSelfSignedCert(Config);
CxPlatFreeSelfSignedCert(Config);
}
#endif

Expand All @@ -506,7 +506,7 @@ FreeServerConfiguration(
#ifdef QUIC_TEST_APIS
auto SelfSignedConfig = (const QUIC_CREDENTIAL_CONFIG*)MsQuic->GetContext(Configuration);
if (SelfSignedConfig) {
CxPlatPlatFreeSelfSignedCert(SelfSignedConfig);
CxPlatFreeSelfSignedCert(SelfSignedConfig);
}
#endif
MsQuic->ConfigurationClose(Configuration);
Expand Down
4 changes: 2 additions & 2 deletions src/inc/quic_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ typedef enum CXPLAT_SELF_SIGN_CERT_TYPE {

_IRQL_requires_max_(PASSIVE_LEVEL)
const QUIC_CREDENTIAL_CONFIG*
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
_In_ CXPLAT_SELF_SIGN_CERT_TYPE Type,
_In_ BOOLEAN ClientCertificate
);

_IRQL_requires_max_(PASSIVE_LEVEL)
void
CxPlatPlatFreeSelfSignedCert(
CxPlatFreeSelfSignedCert(
_In_ const QUIC_CREDENTIAL_CONFIG* CredConfig
);

Expand Down
4 changes: 2 additions & 2 deletions src/perf/bin/appmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ main(
}

SelfSignedCredConfig =
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
TestingKernelMode ?
CXPLAT_SELF_SIGN_CERT_MACHINE :
CXPLAT_SELF_SIGN_CERT_USER,
Expand All @@ -415,7 +415,7 @@ main(

Exit:
if (SelfSignedCredConfig) {
CxPlatPlatFreeSelfSignedCert(SelfSignedCredConfig);
CxPlatFreeSelfSignedCert(SelfSignedCredConfig);
}

CxPlatUninitialize();
Expand Down
4 changes: 2 additions & 2 deletions src/platform/selfsign_capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ FindOrCreateCertificate(

_IRQL_requires_max_(PASSIVE_LEVEL)
const QUIC_CREDENTIAL_CONFIG*
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
_In_ CXPLAT_SELF_SIGN_CERT_TYPE Type,
_In_ BOOLEAN IsClient
)
Expand Down Expand Up @@ -1001,7 +1001,7 @@ CxPlatPlatGetSelfSignedCert(

_IRQL_requires_max_(PASSIVE_LEVEL)
void
CxPlatPlatFreeSelfSignedCert(
CxPlatFreeSelfSignedCert(
_In_ const QUIC_CREDENTIAL_CONFIG* Params
)
{
Expand Down
4 changes: 2 additions & 2 deletions src/platform/selfsign_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ typedef struct CXPLAT_CREDENTIAL_CONFIG_INTERNAL {

_IRQL_requires_max_(PASSIVE_LEVEL)
const QUIC_CREDENTIAL_CONFIG*
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
_In_ CXPLAT_SELF_SIGN_CERT_TYPE Type,
_In_ BOOLEAN ClientCertificate
)
Expand Down Expand Up @@ -428,7 +428,7 @@ CxPlatPlatGetSelfSignedCert(

_IRQL_requires_max_(PASSIVE_LEVEL)
void
CxPlatPlatFreeSelfSignedCert(
CxPlatFreeSelfSignedCert(
_In_ const QUIC_CREDENTIAL_CONFIG* CredConfig
)
{
Expand Down
4 changes: 2 additions & 2 deletions src/platform/selfsign_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

_IRQL_requires_max_(PASSIVE_LEVEL)
const QUIC_CREDENTIAL_CONFIG*
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
_In_ CXPLAT_SELF_SIGN_CERT_TYPE Type,
_In_ BOOLEAN ClientCertificate
)
Expand All @@ -36,7 +36,7 @@ CxPlatPlatGetSelfSignedCert(

_IRQL_requires_max_(PASSIVE_LEVEL)
void
CxPlatPlatFreeSelfSignedCert(
CxPlatFreeSelfSignedCert(
_In_ const QUIC_CREDENTIAL_CONFIG* Params
)
{
Expand Down
8 changes: 4 additions & 4 deletions src/platform/unittest/TlsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@ struct TlsTest : public ::testing::TestWithParam<bool>

static void SetUpTestSuite()
{
SelfSignedCertParams = (QUIC_CREDENTIAL_CONFIG*)CxPlatPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
SelfSignedCertParams = (QUIC_CREDENTIAL_CONFIG*)CxPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
ASSERT_NE(nullptr, SelfSignedCertParams);
#ifndef QUIC_DISABLE_CLIENT_CERT_TESTS
ClientCertParams = (QUIC_CREDENTIAL_CONFIG*)CxPlatPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, TRUE);
ClientCertParams = (QUIC_CREDENTIAL_CONFIG*)CxPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, TRUE);
ASSERT_NE(nullptr, ClientCertParams);
ClientCertParams->Flags |= QUIC_CREDENTIAL_FLAG_NO_CERTIFICATE_VALIDATION;
#endif
}

static void TearDownTestSuite()
{
CxPlatPlatFreeSelfSignedCert(SelfSignedCertParams);
CxPlatFreeSelfSignedCert(SelfSignedCertParams);
SelfSignedCertParams = nullptr;
#ifndef QUIC_DISABLE_CLIENT_CERT_TESTS
CxPlatPlatFreeSelfSignedCert(ClientCertParams);
CxPlatFreeSelfSignedCert(ClientCertParams);
ClientCertParams = nullptr;
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/bin/quic_gtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class QuicTestEnvironment : public ::testing::Environment {
CxPlatSystemLoad();
ASSERT_TRUE(QUIC_SUCCEEDED(CxPlatInitialize()));
ASSERT_TRUE((SelfSignedCertParams =
CxPlatPlatGetSelfSignedCert(
CxPlatGetSelfSignedCert(
TestingKernelMode ?
CXPLAT_SELF_SIGN_CERT_MACHINE :
CXPLAT_SELF_SIGN_CERT_USER,
Expand Down Expand Up @@ -62,7 +62,7 @@ class QuicTestEnvironment : public ::testing::Environment {
QuicTestUninitialize();
delete MsQuic;
}
CxPlatPlatFreeSelfSignedCert(SelfSignedCertParams);
CxPlatFreeSelfSignedCert(SelfSignedCertParams);
CxPlatUninitialize();
CxPlatSystemUnload();
}
Expand Down
4 changes: 2 additions & 2 deletions src/tools/spin/spinquic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ CXPLAT_THREAD_CALLBACK(ServerSpin, Context)

ASSERT_ON_NOT(ServerConfiguration);

auto CredConfig = CxPlatPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
auto CredConfig = CxPlatGetSelfSignedCert(CXPLAT_SELF_SIGN_CERT_USER, FALSE);
ASSERT_ON_NOT(CredConfig);

ASSERT_ON_FAILURE(
Expand Down Expand Up @@ -669,7 +669,7 @@ CXPLAT_THREAD_CALLBACK(ServerSpin, Context)
}

MsQuic->ConfigurationClose(ServerConfiguration);
CxPlatPlatFreeSelfSignedCert(CredConfig);
CxPlatFreeSelfSignedCert(CredConfig);

CXPLAT_THREAD_RETURN(0);
}
Expand Down

0 comments on commit f0be283

Please sign in to comment.