30 static const QMap<char, ProtocolType> cProtocol;
31 static const QMap<char, KeyAgreementType> cKeyAgreement;
32 static const QMap<char, MappingType> cMapping;
33 static const QMap<char, CipherType> cCipher;
34 static const QMap<char, SignatureType> cSignature;
35 static const QMap<char, std::optional<QCryptographicHash::Algorithm>> cHashAlgorithm;
36 static const QMap<char, std::optional<QCryptographicHash::Algorithm>> cRsaHashAlgorithm;
40 ProtocolType mProtocol;
41 KeyAgreementType mKeyAgreement;
44 SignatureType mSignature;
45 std::optional<QCryptographicHash::Algorithm> mHashAlgorithm;
47 void logCritical(
const QLatin1String& pTopic)
const;
50 explicit SecurityProtocol(
const Oid& pOid);
52 [[nodiscard]]
const Oid& getOid()
const;
53 [[nodiscard]] ProtocolType getProtocol()
const;
54 [[nodiscard]] KeyAgreementType getKeyAgreement()
const;
55 [[nodiscard]] MappingType getMapping()
const;
56 [[nodiscard]]
const EVP_CIPHER* getCipher()
const;
57 [[nodiscard]]
const char* getCipherString()
const;
58 [[nodiscard]]
int getKeySize()
const;
59 [[nodiscard]] SignatureType getSignature()
const;
60 [[nodiscard]] QCryptographicHash::Algorithm getHashAlgorithm()
const;
62 bool operator==(
const SecurityProtocol& pOther)
const;