"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot/interfaces.py" between
certbot-0.30.2.tar.gz and certbot-0.31.0.tar.gz

About: Certbot is EFF’s tool to obtain certs from Let’s Encrypt, and optionally auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

interfaces.py  (certbot-0.30.2):interfaces.py  (certbot-0.31.0)
skipping to change at line 518 skipping to change at line 518
NoninteractiveDisplay NoninteractiveDisplay
:param bool force_interactive: True if it's safe to prompt the user :param bool force_interactive: True if it's safe to prompt the user
because it won't cause any workflow regressions because it won't cause any workflow regressions
:returns: tuple of the form (`code`, `string`) where :returns: tuple of the form (`code`, `string`) where
`code` - int display exit code `code` - int display exit code
`string` - input entered by the user `string` - input entered by the user
""" """
class IValidator(zope.interface.Interface):
"""Configuration validator."""
def certificate(cert, name, alt_host=None, port=443):
"""Verifies the certificate presented at name is cert
:param OpenSSL.crypto.X509 cert: Expected certificate
:param str name: Server's domain name
:param bytes alt_host: Host to connect to instead of the IP
address of host
:param int port: Port to connect to
:returns: True if the certificate was verified successfully
:rtype: bool
"""
def redirect(name, port=80, headers=None):
"""Verify redirect to HTTPS
:param str name: Server's domain name
:param int port: Port to connect to
:param dict headers: HTTP headers to include in request
:returns: True if redirect is successfully enabled
:rtype: bool
"""
def hsts(name):
"""Verify HSTS header is enabled
:param str name: Server's domain name
:returns: True if HSTS header is successfully enabled
:rtype: bool
"""
def ocsp_stapling(name):
"""Verify ocsp stapling for domain
:param str name: Server's domain name
:returns: True if ocsp stapling is successfully enabled
:rtype: bool
"""
class IReporter(zope.interface.Interface): class IReporter(zope.interface.Interface):
"""Interface to collect and display information to the user.""" """Interface to collect and display information to the user."""
HIGH_PRIORITY = zope.interface.Attribute( HIGH_PRIORITY = zope.interface.Attribute(
"Used to denote high priority messages") "Used to denote high priority messages")
MEDIUM_PRIORITY = zope.interface.Attribute( MEDIUM_PRIORITY = zope.interface.Attribute(
"Used to denote medium priority messages") "Used to denote medium priority messages")
LOW_PRIORITY = zope.interface.Attribute( LOW_PRIORITY = zope.interface.Attribute(
"Used to denote low priority messages") "Used to denote low priority messages")
 End of changes. 1 change blocks. 
49 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)