123456789101112131415161718192021222324252627282930313233module juptune.data.x509.asn1convert;
enum X509Error : int
{
///
none = 0,
/// The version field contains an unknown/invalid version value.
invalidCertVersion = 1,
/// The signatureAlgorithm and unexposed signature fields describe different algorithms.
signatureAlgorithmMismatch = 2,
/// A Time must use UTCTime for years <= 2049, and GeneralizedTime for years >= 2050
invalidTimeType = 3,
/// An Asn1ObjectIdentifier was not recognised for a valid/supported ECDSA named curve.
invalidNamedCurve = 4,
/// Unique Identifiers exsit under a certificate that is not v2 or v3.
uniqueIdentifiersWrongVersion = 5,
/// Extensions exist under a certificate that is not v3.
extensionsWrongVersion = 6,
/// The keyUsage extension contains more bits than expected.
keyUsageTooManyBits = 7,
/// The keyUsage extension must contain at least 1 set bit when used.
keyUsageNoSetBit = 8,
/// The extendedKeyUsage extension contains an unknown usage OBJECT IDENTIFIER.
extendedKeyUsageUnknownUsage = 9,
/// A Signing/Key algorithm is missing its required parameters.
algorithmMissingParameers = 10,
/// A Signing/Key algorithm contains parameters when it shouldn't.
algorithmHasParameters = 11,
/// (Useful for user code) an extension marked as critical was unable to be handled.
criticalExtensionNotHandled = 12,
/// A certificate within a PEM encoded file contains the wrong label.
wrongPemLabel = 13
}
ON THIS PAGE