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

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:1666:   //! it is self signed.   //!   //! See @[Standards.PKCS.Certificate.get_dn_string] for converting the   //! RDN to an X500 style string.   mapping verify_certificate_chain(array(string|.PKCS.Signature.Signed) cert_chain,    mapping(string:Verifier|array(Verifier)) authorities,    int|void require_trust)   {    mapping m = ([ ]);    - #define ERROR(X) do { \ -  DBG("Error " #X "\n"); \ + #define ERROR(X) do { \ +  DBG("Error " #X "\n"); \    m->verified=0; m->error_code|=(X); m->error_cert=idx; \    } while(0)   #define FATAL(X) do { ERROR(X); return m; } while(0)       // Decode all certificates in the chain. Leaf is first and root is    // last.       int len = sizeof(cert_chain);    array chain_obj = allocate(len);    array chain_cert = allocate(len);