Re: Example of Windows SSL with Secure Channel?

2022-03-27 Thread janrinok via Digitalmars-d-learn

On Monday, 21 March 2022 at 17:30:31 UTC, Marcone wrote:
I hope one day the creators of the D programming language will 
implement std.socket.ssl ​​in the Phobos library.
I have to agree.  For those just getting to grips with D there 
are some things in the library that just make using them much 
more difficult than they ought to be, or altogether impossible.





Re: Example of Windows SSL with Secure Channel?

2022-03-21 Thread Marcone via Digitalmars-d-learn
I hope one day the creators of the D programming language will 
implement std.socket.ssl ​​in the Phobos library.


Re: Example of Windows SSL with Secure Channel?

2022-03-20 Thread a11e99z via Digitalmars-d-learn

On Saturday, 19 March 2022 at 16:54:03 UTC, Anonymouse wrote:
Does anyone have an example snippet code connecting to, reading 
from and writing to a server using SSL under Windows with 
Secure Channel? Something in a personal project you wouldn't 
mind sharing a part of to let me dissect?




https://www.amazon.com/Programming-Server-Side-Applications-Microsoft-Windows/dp/0735607532
You can download example for it: SslChat


Example of Windows SSL with Secure Channel?

2022-03-19 Thread Anonymouse via Digitalmars-d-learn
Does anyone have an example snippet code connecting to, reading 
from and writing to a server using SSL under Windows with Secure 
Channel? Something in a personal project you wouldn't mind 
sharing a part of to let me dissect?


My project (IRC bot) supports connecting to a server using SSL, 
for which I'm currently using OpenSSL with 
[requests.ssl_adapter](https://github.com/ikod/dlang-requests/blob/master/source/requests/ssl_adapter.d). It's a simple thing that just sets up an SSL context, connects using the normal `Socket.connect`, establishes SSL, and then uses OpenSSL functions to read and write instead of Phobos' `Socket.{receive,send}`. It works, but unlike in Linux where OpenSSL is ubiquitous, on Windows you have to manually download and install OpenSSL from a third-party site. It still works, but it's not ideal.


Frustratingly there is no `std.socket.ssl`.

I'm helplessly a Linux creature and I don't know where to start. 
Does anyone have anything I could look at?