forked from svenvc/zodiac
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from GsDevKit/kurtkilpela.sni
ZdcSecureSocketStream >> #serverNameIndication:
- Loading branch information
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
repository/Zodiac-Core.package/ZdcSecureSocketStream.class/instance/serverNameIndication..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
accessing | ||
serverNameIndication: aDomainNameString | ||
"Set the Server Name Indication for the TLS connection. | ||
Note, this should be set before sending #connect. | ||
Note, some supported version of GemStone do not support | ||
SNI. As a result, it is only set in supported version." | ||
|
||
| sock | | ||
sock := self socket. | ||
(sock respondsTo: #setServerNameIndication:) | ||
ifTrue: [ sock setServerNameIndication: aDomainNameString ] |