pike.git / lib / modules / Standards.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:92: Inside #if constant(Crypto.SHA512)
  #endif   #if constant(Crypto.SHA512)    Identifiers.ecdsa_sha512_id->get_der() : Crypto.SHA512,   #endif    ]);   }      class Verifier {    constant type = "none";    Crypto.Sign pkc; -  optional /* __deprecated__ */ Crypto.RSA rsa; -  optional /* __deprecated__ */ Crypto.DSA dsa; +  optional __deprecated__(Crypto.RSA) rsa; +  optional __deprecated__(Crypto.DSA) dsa;       //! Verifies the @[signature] of the certificate @[msg] using the    //! indicated hash @[algorithm].    int(0..1) verify(Sequence algorithm, string msg, string signature)    {    DBG("Verify hash %O\n", algorithm[0]);    Crypto.Hash hash = algorithms[algorithm[0]->get_der()];    if (!hash) return 0;    return pkc && pkc->pkcs_verify(msg, hash, signature);    }