Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 2f0fe1a

Browse files
committed
Adjust to ObjFW changes
1 parent d8ca1fe commit 2f0fe1a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/SSLSocket.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#import <ObjFW/OFThread.h>
4545
#import <ObjFW/OFHTTPRequest.h>
4646
#import <ObjFW/OFDataArray.h>
47-
#import <ObjFW/OFSystemInfo.h>
47+
#import <ObjFW/OFLocalization.h>
4848

4949
#import <ObjFW/OFAcceptFailedException.h>
5050
#import <ObjFW/OFInitializationFailedException.h>
@@ -213,7 +213,7 @@ - (void)SSL_startTLSWithExpectedHost: (OFString*)host
213213

214214
SSL_set_connect_state(_SSL);
215215

216-
encoding = [OFSystemInfo native8BitEncoding];
216+
encoding = [OFLocalization encoding];
217217

218218
if ((_privateKeyFile != nil && !SSL_use_PrivateKey_file(_SSL,
219219
[_privateKeyFile cStringWithEncoding: encoding],
@@ -288,7 +288,7 @@ - (instancetype)accept
288288

289289
SSL_set_accept_state(client->_SSL);
290290

291-
encoding = [OFSystemInfo native8BitEncoding];
291+
encoding = [OFLocalization encoding];
292292

293293
if (!SSL_use_PrivateKey_file(client->_SSL, [_privateKeyFile
294294
cStringWithEncoding: encoding],

0 commit comments

Comments
 (0)