Certificate.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_SECURITY_CERTIFICATE_H
10#define SQUID_SRC_SECURITY_CERTIFICATE_H
11
12#include "security/forward.h"
13
14// The accessing/testing functions below require a non-constant Certificate when
15// it is modified by an underlying library implementation (e.g., GnuTLS).
16
17namespace Security
18{
19
22
25
30bool IssuedBy(Certificate &cert, Certificate &issuer);
31
33inline bool SelfSigned(Certificate &c) { return IssuedBy(c, c); }
34
35} // namespace Security
36
37// Declared outside Security because all underlying Security::Certificate types
38// are declared inside global namespace.
40std::ostream &operator <<(std::ostream &, Security::Certificate &);
41
42#endif /* SQUID_SRC_SECURITY_CERTIFICATE_H */
43
Definition: SBuf.h:94
Network/connection security abstraction layer.
Definition: Connection.h:34
SBuf IssuerName(Certificate &)
The Issuer field of the given certificate (if found) or an empty SBuf.
Definition: Certificate.cc:28
X509 Certificate
Definition: forward.h:73
bool SelfSigned(Certificate &c)
Whether the given certificate is self-signed.
Definition: Certificate.h:33
SBuf SubjectName(Certificate &)
The SubjectName field of the given certificate (if found) or an empty SBuf.
Definition: Certificate.cc:68
bool IssuedBy(Certificate &cert, Certificate &issuer)
Definition: Certificate.cc:108
std::ostream & operator<<(std::ostream &, Security::Certificate &)
reports a one-line gist of the Certificate Subject Name (for debugging)
Definition: Certificate.cc:132

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors