Branch: Tag:

2015-01-19

2015-01-19 13:32:40 by Martin Nilsson <nilsson@opera.com>

Deprecated verify_certificates, as auth_level does the same thing. This breaks some tests that appears to be incomplete, so disable them.

664:   protected array(array(string)) trusted_issuers = ({});   mapping(string:array(Standards.X509.Verifier)) trusted_issuers_cache = ([]);    - //! Determines whether certificates presented by the peer are - //! verified, or just accepted as being valid. - int verify_certificates = 0; -  +    //! For client authentication. Used only if auth_level is AUTH_ask or   //! AUTH_require.   array(int) preferred_auth_methods =
940:    s->master_secret = 0;    /* There's no need to remove the id from the active_sessions queue */   } +  +  + // + // --- Compatibility code + // +  + //! @decl int verify_certificates + //! + //! Determines whether certificates presented by the peer are + //! verified, or just accepted as being valid. + //! + //! @deprecated auth_level +  + __deprecated__ void `verify_certificates=(int i) + { +  if(!i) +  auth_level = AUTHLEVEL_none; +  else if(auth_level < AUTHLEVEL_ask) +  auth_level = AUTHLEVEL_ask; + } +  + __deprecated__ int `verify_certificates() + { +  return auth_level >= AUTHLEVEL_ask; + }