def _verify(self, connection, cert, errorNumber, errorDepth, returnCode):
try:<EOL><INDENT>user = userForCert(self.store, cert)<EOL><DEDENT>except ItemNotFound:<EOL><INDENT>log.msg("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(emailForCert(cert), cert.digest("<STR_LIT>")))<EOL>return False<EOL><DEDENT>digest = cert.digest("<STR_LIT>")<EOL>if user.digest is None:<EOL><INDENT>user.digest = digest<EOL>log.msg("<STR_LIT>"<EOL>.format(user.email, digest))<EOL>return True<EOL><DEDENT>elif user.digest == digest:<EOL><INDENT>log.msg("<STR_LIT>".format(user.email))<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>log.msg("<STR_LIT>"<EOL>"<STR_LIT>".format(user.email, digest, user.digest))<EOL>return False<EOL><DEDENT>
Verify a certificate.