pike.git / lib / modules / SSL.pmod / Session.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Session.pike:130:   #endif /* Crypto.ECC.Curve */      //! Heartbeat mode.   HeartBeatModeType heartbeat_mode = HEARTBEAT_MODE_disabled;      //! Indicates if this session has the required server certificate keys   //! set. No means that no or the wrong type of certificate was sent   //! from the server.   int(0..1) has_required_certificates()   { -  if (!peer_public_key) return (cipher_spec->sign == Cipher.anon_sign); +  if (!peer_public_key) +  return (cipher_spec->signature_alg == SIGNATURE_anonymous);    return 1;   }      //! Used to filter certificates not supported by the peer.   //!   //! @param cp   //! Candidate @[CertificatePair].   //!   //! @param version   //! Negotiated version of SSL.