diff options
Diffstat (limited to 'examples/amqps_bind.c')
-rw-r--r-- | examples/amqps_bind.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/amqps_bind.c b/examples/amqps_bind.c index 3255e70..04db414 100644 --- a/examples/amqps_bind.c +++ b/examples/amqps_bind.c @@ -75,10 +75,17 @@ int main(int argc, char const * const *argv) { } } + if (argc > 7) { + status = amqp_ssl_socket_set_key(socket, argv[7]); + if (status) { + die("setting client key"); + } + } + if (argc > 8) { - status = amqp_ssl_socket_set_key(socket, argv[7], argv[8]); + status = amqp_ssl_socket_set_cert(socket, argv[8]); if (status) { - die("setting client key/cert"); + die("setting client cert"); } } |