/*
- * Copyright (c) 2017-2018 Cisco and/or its affiliates.
+ * Copyright (c) 2017-2019 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
" -w <dir> Write test results to <dir>.\n"
" -X Exit after running test.\n"
" -D Use UDP transport layer\n"
- " -S Use TLS transport layer\n"
+ " -L Use TLS transport layer\n"
" -E Run Echo test.\n"
" -N <num-writes> Test Cfg: number of writes.\n"
" -R <rxbuf-size> Test Cfg: rx buffer size.\n"
int c, v;
opterr = 0;
- while ((c = getopt (argc, argv, "chn:w:XE:I:N:R:T:UBV6DS")) != -1)
+ while ((c = getopt (argc, argv, "chn:w:XE:I:N:R:T:UBV6DL")) != -1)
switch (c)
{
case 'c':
ctrl->cfg.transport_udp = 1;
break;
- case 'S':
+ case 'L':
ctrl->cfg.transport_tls = 1;
break;
if (vcm->proto == VPPCOM_PROTO_TLS)
{
+ vtinf ("Adding tls certs ...");
vppcom_session_tls_add_cert (ctrl->fd, vcl_test_crt_rsa,
vcl_test_crt_rsa_len);
vppcom_session_tls_add_key (ctrl->fd, vcl_test_key_rsa,
vcl_test_key_rsa_len);
}
-
vtinf ("Connecting to server...");
rv = vppcom_session_connect (ctrl->fd, &vcm->server_endpt);
if (rv)