Commit b1ca87487eff2fa810c569cafe95f141340b6d71

Authored by Perry Werneck
1 parent 3da753a3
Exists in master and in 2 other branches develop, macos

Adding option to disable crl download on testprogram.

Showing 1 changed file with 9 additions and 4 deletions   Show diff stats
src/testprogram/testprogram.c
@@ -91,10 +91,11 @@ int main(int argc, char *argv[]) @@ -91,10 +91,11 @@ int main(int argc, char *argv[])
91 // #pragma GCC diagnostic push 91 // #pragma GCC diagnostic push
92 // #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" 92 // #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
93 static struct option options[] = { 93 static struct option options[] = {
94 - { "crl", required_argument, 0, 'C' },  
95 - { "url", required_argument, 0, 'U' },  
96 - { "tracefile", required_argument, 0, 't' },  
97 - { "reconnect", no_argument, 0, 'r' }, 94 + { "crl", required_argument, 0, 'C' },
  95 + { "disable-crl-download", no_argument, 0, 'D' },
  96 + { "url", required_argument, 0, 'U' },
  97 + { "tracefile", required_argument, 0, 't' },
  98 + { "reconnect", no_argument, 0, 'r' },
98 99
99 { 0, 0, 0, 0} 100 { 0, 0, 0, 0}
100 101
@@ -124,6 +125,10 @@ int main(int argc, char *argv[]) @@ -124,6 +125,10 @@ int main(int argc, char *argv[])
124 lib3270_set_url(h,optarg); 125 lib3270_set_url(h,optarg);
125 break; 126 break;
126 127
  128 + case 'D':
  129 + lib3270_ssl_set_crl_download(h,0);
  130 + break;
  131 +
127 // case 'C': 132 // case 'C':
128 // lib3270_crl_set_url(h,optarg); 133 // lib3270_crl_set_url(h,optarg);
129 // break; 134 // break;