Branch: Tag:

2015-12-06

2015-12-06 13:11:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.Context: Deprecated variable require_trust.

Setting of this variable is now equivalent to setting the
auth_level to AUTHLEVEL_require.

777:   //! @[SSL.Constants.AUTHLEVEL_none],   //! @[SSL.Constants.AUTHLEVEL_verify], @[SSL.Constants.AUTHLEVEL_ask]   //! and @[SSL.Constants.AUTHLEVEL_require]. + //! + //! Defaults to SSL.Constants.AUTHLEVEL_none.   int auth_level;      //! Array of authorities that are accepted for client certificates.
797:    update_authorities();   }    - //! When set, require the chain to be known, even if the root is self - //! signed. - //! - //! Note that if set, and certificates are set to be verified, trusted - //! issuers must be provided, or no connections will be accepted. - int require_trust=0; -  +    //! Get the list of allowed authorities. See @[set_authorities].   array(string) get_authorities()   {
1155:    return auth_level >= AUTHLEVEL_verify;   }    + //! @decl int require_trust + //! + //! When set, require the chain to be known, even if the root is self + //! signed. + //! + //! Note that if set, and certificates are set to be verified, trusted + //! issuers must be provided, or no connections will be accepted. + //! + //! @deprecated auth_level +  + __deprecated__ void `require_trust=(int i) + { +  if(i) +  auth_level = AUTHLEVEL_require; +  else if(auth_level > AUTHLEVEL_verify) +  auth_level = AUTHLEVEL_verify; + } +  + __deprecated__ int `require_trust() + { +  return auth_level >= AUTHLEVEL_require; + } +    //! @decl int(0..1) encrypt_then_mac   //!   //! Attempt to enable encrypt-then-mac mode. Defaults to @expr{1@}.