Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in ocsp.py #3022

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions redis/ocsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _check_certificate(issuer_cert, ocsp_bytes, validate=True):
)
else:
raise ConnectionError(
"failed to retrieve a sucessful response from the ocsp responder"
"failed to retrieve a successful response from the ocsp responder"
)

if ocsp_response.this_update >= datetime.datetime.now():
Expand Down Expand Up @@ -139,7 +139,7 @@ def _get_pubkey_hash(certificate):


def ocsp_staple_verifier(con, ocsp_bytes, expected=None):
"""An implemention of a function for set_ocsp_client_callback in PyOpenSSL.
"""An implementation of a function for set_ocsp_client_callback in PyOpenSSL.

This function validates that the provide ocsp_bytes response is valid,
and matches the expected, stapled responses.
Expand Down Expand Up @@ -266,7 +266,7 @@ def build_certificate_url(self, server, cert, issuer_cert):
return url

def check_certificate(self, server, cert, issuer_url):
"""Checks the validitity of an ocsp server for an issuer"""
"""Checks the validity of an ocsp server for an issuer"""

r = requests.get(issuer_url)
if not r.ok:
Expand Down