Overview
Context
Changes
Modified src/OFX509Certificate.h
from [6f5ea71b48]
to [431cc298b0].
︙ | | |
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
|
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
|
-
+
-
-
+
+
-
+
|
*/
@interface OFX509Certificate: OFObject
{
OF_RESERVE_IVARS(OFX509Certificate, 4)
}
/**
* @brief Returns a certificate chain from the specified IRI.
* @brief Returns the certificate chain from the PEM file at the specified IRI.
*
* @param IRI The IRI to retrieve the certificate chain from
*
* @param IRI The IRI to the PEM file to retrieve the certificate chain from
* @return An array of @ref OFX509Certificate
* @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;
certificateChainFromPEMFileAtIRI: (OFIRI *)IRI;
@end
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The implementation for OFX509Certificate to use.
|
︙ | | |
Modified src/OFX509Certificate.m
from [020fab5772]
to [f350d9b960].
︙ | | |
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
-
+
-
+
|
object: self];
}
return [super alloc];
}
+ (OFArray OF_GENERIC(OFX509Certificate *) *)
certificateChainFromIRI: (OFIRI *)IRI
certificateChainFromPEMFileAtIRI: (OFIRI *)IRI
{
if (OFX509CertificateImplementation != Nil)
return [OFX509CertificateImplementation
certificateChainFromIRI: IRI];
certificateChainFromPEMFileAtIRI: IRI];
OF_UNRECOGNIZED_SELECTOR
}
@end
|
Modified src/OFX509CertificatePrivateKey.h
from [c6b920cf5c]
to [3afc4a8a34].
︙ | | |
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
|
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
|
-
+
-
+
|
*/
@interface OFX509CertificatePrivateKey: OFObject
{
OF_RESERVE_IVARS(OFX509Certificate, 4)
}
/**
* @brief Returns a private key from the specified IRI.
* @brief Returns the private key from the PEM file at the specified IRI.
*
* @param IRI The IRI to retrieve the private key from
*
* @throw OFInitializationFailedException Initializing the private key failed
* @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
*/
+ (instancetype)privateKeyFromIRI: (OFIRI *)IRI;
+ (instancetype)privateKeyFromPEMFileAtIRI: (OFIRI *)IRI;
@end
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The implementation for OFX509CertificatePrivateKey to use.
|
︙ | | |
Modified src/OFX509CertificatePrivateKey.m
from [89a24cbac0]
to [628a650aef].
︙ | | |
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
-
+
-
+
|
@throw [OFNotImplementedException exceptionWithSelector: _cmd
object: self];
}
return [super alloc];
}
+ (instancetype)privateKeyFromIRI: (OFIRI *)IRI
+ (instancetype)privateKeyFromPEMFileAtIRI: (OFIRI *)IRI
{
if (OFX509CertificatePrivateKeyImplementation != Nil)
return [OFX509CertificatePrivateKeyImplementation
privateKeyFromIRI: IRI];
privateKeyFromPEMFileAtIRI: IRI];
OF_UNRECOGNIZED_SELECTOR
}
@end
|
Modified src/tls/OFGnuTLSX509Certificate.m
from [f1631a4c53]
to [1050c14b20].
︙ | | |
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
-
+
|
+ (void)load
{
if (OFX509CertificateImplementation == Nil)
OFX509CertificateImplementation = self;
}
+ (OFArray OF_GENERIC(OFX509Certificate *) *)
certificateChainFromIRI: (OFIRI *)IRI
certificateChainFromPEMFileAtIRI: (OFIRI *)IRI
{
OFMutableArray *chain = [OFMutableArray array];
void *pool = objc_autoreleasePoolPush();
OFData *data = [OFData dataWithContentsOfIRI: IRI];
gnutls_datum_t datum;
gnutls_x509_crt_t *certs;
unsigned int i, size;
|
︙ | | |
Modified src/tls/OFGnuTLSX509CertificatePrivateKey.m
from [06ae647eee]
to [05a69fa4b6].
︙ | | |
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
-
+
|
+ (void)load
{
if (OFX509CertificatePrivateKeyImplementation == Nil)
OFX509CertificatePrivateKeyImplementation = self;
}
+ (instancetype)privateKeyFromIRI: (OFIRI *)IRI
+ (instancetype)privateKeyFromPEMFileAtIRI: (OFIRI *)IRI
{
void *pool = objc_autoreleasePoolPush();
OFData *data = [OFData dataWithContentsOfIRI: IRI];
gnutls_datum_t datum;
gnutls_x509_privkey_t key;
OFGnuTLSX509CertificatePrivateKey *privateKey;
|
︙ | | |