Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,6 @@ internal enum X509VerifyStatusCodeUniversal
X509_V_ERR_EMAIL_MISMATCH = 63,
X509_V_ERR_IP_ADDRESS_MISMATCH = 64,
}
internal enum X509VerifyStatusCode102
{
X509_V_ERR_INVALID_CA = 24,

X509_V_ERR_INVALID_CALL = 65,
X509_V_ERR_STORE_LOOKUP = 66,
X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION = 67,
}

internal enum X509VerifyStatusCode111
{
Expand Down Expand Up @@ -421,7 +413,6 @@ internal X509VerifyStatusCode(int code)
}

public X509VerifyStatusCodeUniversal UniversalCode => (X509VerifyStatusCodeUniversal)Code;
public X509VerifyStatusCode102 Code102 => (X509VerifyStatusCode102)Code;
public X509VerifyStatusCode111 Code111 => (X509VerifyStatusCode111)Code;
public X509VerifyStatusCode30 Code30 => (X509VerifyStatusCode30)Code;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,18 +1172,6 @@ private static X509ChainStatusFlags MapOpenSsl30Code(Interop.Crypto.X509VerifySt
}
}

private static X509ChainStatusFlags MapOpenSsl102Code(Interop.Crypto.X509VerifyStatusCode code)
{
switch (code.Code102)
{
case Interop.Crypto.X509VerifyStatusCode102.X509_V_ERR_INVALID_CA:
return X509ChainStatusFlags.InvalidBasicConstraints;
default:
Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code102);
throw GetUnmappedCodeException(nameof(MapOpenSsl102Code), (int)code.Code102);
}
}

private static X509ChainStatusFlags MapOpenSsl111Code(Interop.Crypto.X509VerifyStatusCode code)
{
switch (code.Code111)
Expand Down Expand Up @@ -1417,7 +1405,7 @@ private static MapVersionSpecificCode GetVersionLookup()
return MapOpenSsl111Code;
}

return MapOpenSsl102Code;
throw new CryptographicException();
}

private static CryptographicException GetUnmappedCodeException(string functionName, int code)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ append_extra_cryptography_libs(NATIVE_LIBS_EXTRA)
include_directories(${OPENSSL_INCLUDE_DIR})

set(NATIVECRYPTO_SOURCES
apibridge.c
apibridge_30.c
memory_debug.c
openssl.c
Expand Down
Loading
Loading