Differences From Artifact [bbdec4f618]:
- File
src/OFX509Certificate.h
— part of check-in
[43864736e7]
at
2024-11-16 22:36:57
on branch tls-server
— OFTLSStream: Add API for server mode
Not implemented using any TLS library yet. (user: js, size: 995) [annotate] [blame] [check-ins using]
To Artifact [6f5ea71b48]:
- File src/OFX509Certificate.h — part of check-in [2cb48ceaf1] at 2024-11-18 00:38:04 on branch tls-server — OFGnuTLSTLSStream: Add server support (user: js, size: 1903) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | * <https://www.gnu.org/licenses/>. */ #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN /** * @class OFX509Certificate OFX509Certificate.h ObjFW/ObjFW.h * * @brief An X.509 certificate. */ @interface OFX509Certificate: OFObject { OF_RESERVE_IVARS(OFX509Certificate, 4) } @end OF_ASSUME_NONNULL_END | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | * <https://www.gnu.org/licenses/>. */ #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN @class OFArray OF_GENERIC(ObjectType); @class OFIRI; /** * @class OFX509Certificate OFX509Certificate.h ObjFW/ObjFW.h * * @brief An X.509 certificate. */ @interface OFX509Certificate: OFObject { OF_RESERVE_IVARS(OFX509Certificate, 4) } /** * @brief Returns a certificate chain from the specified IRI. * * @param IRI The IRI to retrieve the certificate chain from * * @throw OFOpenItemFailedException Opening the item failed * @throw OFUnsupportedProtocolException The specified IRI is not supported * @throw OFReadFailedException Reading the item failed * @throw OFInvalidFormatException The format of the item is invalid */ + (OFArray OF_GENERIC(OFX509Certificate *) *) certificateChainFromIRI: (OFIRI *)IRI; @end #ifdef __cplusplus extern "C" { #endif /** * @brief The implementation for OFX509Certificate to use. * * This can be set to a class that is always used for OFX509Certificate. This * is useful to either force a specific implementation or to use one that ObjFW * does not know about. */ extern Class OFX509CertificateImplementation; #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |