-
- Downloads
Store the certificate context in scfg_t. This allows static services to be
TLS servers without all of them needing to separately load the ssl certificate. It's destroyed in free_scfg(), and the config *must* be prepped both to destroy the certificate and to load it. This is because the "no cert" value is -1, not 0, so the prepped flag is all we really have to indicate if it's zero because it's a valid certificate or zero because no certificate has been loaded.
Showing
- src/sbbs3/js_socket.c 14 additions, 6 deletionssrc/sbbs3/js_socket.c
- src/sbbs3/js_socket.h 1 addition, 0 deletionssrc/sbbs3/js_socket.h
- src/sbbs3/load_cfg.c 10 additions, 0 deletionssrc/sbbs3/load_cfg.c
- src/sbbs3/scfgdefs.h 2 additions, 0 deletionssrc/sbbs3/scfgdefs.h
- src/sbbs3/services.c 5 additions, 12 deletionssrc/sbbs3/services.c
- src/sbbs3/ssl.c 7 additions, 1 deletionsrc/sbbs3/ssl.c
- src/sbbs3/websrvr.c 5 additions, 12 deletionssrc/sbbs3/websrvr.c
Loading
Please register or sign in to comment