diff options
author | Sune Vuorela <sune@vuorela.dk> | 2023-03-02 14:41:48 +0100 |
---|---|---|
committer | Sune Vuorela <sune@vuorela.dk> | 2023-03-03 07:36:28 +0100 |
commit | 6051948976b63ffa02a93afc9aaea18d2733a4f9 (patch) | |
tree | cbb31fd0dac2945cd4d1acaf94467ced9759ef96 | |
parent | 7af9565c492205cdad27c08478168d9e53349f83 (diff) |
Remove unused static method
-rw-r--r-- | poppler/SignatureHandler.cc | 15 | ||||
-rw-r--r-- | poppler/SignatureHandler.h | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc index 70f02e90..b87afa6b 100644 --- a/poppler/SignatureHandler.cc +++ b/poppler/SignatureHandler.cc @@ -513,21 +513,6 @@ unsigned int SignatureHandler::digestLength(HashAlgorithm digestAlgId) } } -HashAlgorithm SignatureHandler::getHashOidTag(const char *digestName) -{ - HashAlgorithm tag = HashAlgorithm::Unknown; - if (strcmp(digestName, "SHA1") == 0) { - tag = HashAlgorithm::Sha1; - } else if (strcmp(digestName, "SHA256") == 0) { - tag = HashAlgorithm::Sha256; - } else if (strcmp(digestName, "SHA384") == 0) { - tag = HashAlgorithm::Sha384; - } else if (strcmp(digestName, "SHA512") == 0) { - tag = HashAlgorithm::Sha512; - } - return tag; -} - std::string SignatureHandler::getSignerName() { char *commonName; diff --git a/poppler/SignatureHandler.h b/poppler/SignatureHandler.h index 94459ed0..074652b4 100644 --- a/poppler/SignatureHandler.h +++ b/poppler/SignatureHandler.h @@ -61,8 +61,6 @@ public: static std::vector<std::unique_ptr<X509CertificateInfo>> getAvailableSigningCertificates(); std::unique_ptr<GooString> signDetached(const char *password) const; - static HashAlgorithm getHashOidTag(const char *digestName); - // Initializes the NSS dir with the custom given directory // calling it with an empty string means use the default firefox db, /etc/pki/nssdb, ~/.pki/nssdb // If you don't want a custom NSS dir and the default entries are fine for you, not calling this function is fine |