vfs: check userland buffers before reading them.
[haiku.git] / headers / os / net / Certificate.h
blobcb3bee4ee062ccd0053b74bdf9c40bd58bc85301
1 /*
2 * Copyright 2014 Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _CERTIFICATE_H
6 #define _CERTIFICATE_H
9 #include <SecureSocket.h>
10 #include <String.h>
13 class BCertificate {
14 public:
15 BCertificate(const BCertificate& other);
16 ~BCertificate();
18 int Version() const;
20 time_t StartDate() const;
21 time_t ExpirationDate() const;
23 bool IsValidAuthority() const;
24 bool IsSelfSigned() const;
26 BString Issuer() const;
27 BString Subject() const;
28 BString SignatureAlgorithm() const;
30 BString String() const;
32 bool operator==(const BCertificate& other) const;
34 private:
35 friend class BSecureSocket::Private;
36 class Private;
37 BCertificate(Private* data);
39 Private* fPrivate;
42 #endif