Skip to content

Commit

Permalink
Refactor: Add ssl placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkhan42 committed Apr 14, 2023
1 parent eec88cd commit 34b54bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions examples/login/ujrpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ int main(int argc, char** argv) {
config.max_lifetime_exchanges = UINT32_MAX;
config.logs_file_descriptor = result["silent"].as<bool>() ? -1 : STDOUT_FILENO;
config.logs_format = "human";
config.use_ssl = true;
config.ssl_pk_path = "./examples/login/certs/main.key";
const char* crts[] = {"./examples/login/certs/srv.crt", "./examples/login/certs/cas.pem"};
config.ssl_crts_path = crts;
config.ssl_crts_cnt = 2;
// config.use_ssl = true;
// config.ssl_pk_path = "./examples/login/certs/main.key";
// const char* crts[] = {"./examples/login/certs/srv.crt", "./examples/login/certs/cas.pem"};
// config.ssl_crts_path = crts;
// config.ssl_crts_cnt = 2;

ujrpc_init(&config, &server);
if (!server) {
Expand Down
6 changes: 5 additions & 1 deletion examples/login/ujrpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

from ujrpc.posix import Server

server = Server(port=8545)
server = Server(port=8545,
# ssl_pk='./examples/login/certs/main.key',
# ssl_certs=['./examples/login/certs/srv.crt',
# './examples/login/certs/cas.pem']
)


@server
Expand Down

0 comments on commit 34b54bc

Please sign in to comment.