summaryrefslogtreecommitdiff
path: root/examples/amqps_unbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/amqps_unbind.c')
-rw-r--r--examples/amqps_unbind.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/amqps_unbind.c b/examples/amqps_unbind.c
index e9f4317..5c8a4b5 100644
--- a/examples/amqps_unbind.c
+++ b/examples/amqps_unbind.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");
}
}