Re: [Dclib-devel] ssl server
Brought to you by:
davisking
From: Davis K. <dav...@gm...> - 2009-04-16 11:05:24
|
Actually, it just occurred to me that there is a very easy way to do this. The http server object is layered on top of the server_iostream object. So all you would need to do is make a C++ stream buffer object that did I/O using libssl (or whatever library is right) instead of directly with dlib::connection. Once you have that stream buffer you could make iostream objects that read and write from an SSL connection and could be used for anything really. So to see how to make a stream buffer take a look at the sockstreambuf_kernel_2 object. It is pretty straight forward. -Davis On Thu, Apr 16, 2009 at 6:45 AM, Steven Van Ingelgem <st...@va...>wrote: > As far as I understand the https implementation is an SSL layer whereover > the normal http traffic goes. Do you have any pointers where I might start > to create an SSL layer and integrate this one with the server? > > > Thanks, > Steven > > 2009/4/16 Davis King <dav...@gm...> > > That currently isn't part of dlib. You could make an implementation of >> that by laying an https implementation on top of the server object. Or >> maybe by modifying the current http server. But in any case, some new code >> would need to be written. >> >> -Davis >> >> >> On Thu, Apr 16, 2009 at 6:23 AM, Steven Van Ingelgem < >> st...@va...> wrote: >> >>> Hi Davis, >>> >>> >>> How would one create a https server via dlib? >>> >>> >>> Thanks, >>> Steven >>> >> >> > |