File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,14 @@ android/wolfssljni-ndk-sample/proguard-project.txt
55
55
/dtls /client-dtls-shared
56
56
/dtls /client-dtls
57
57
/dtls /client-udp
58
+ /dtls /client-dtls13
58
59
/dtls /server-dtls-callback
59
60
/dtls /server-dtls-ipv6
60
61
/dtls /server-dtls-nonblocking
61
62
/dtls /server-dtls-threaded
62
63
/dtls /server-dtls
63
64
/dtls /server-udp
65
+ /dtls /server-dtls13
64
66
65
67
/psk /client-psk-bio-custom
66
68
/psk /client-psk-nonblocking
@@ -106,7 +108,7 @@ android/wolfssljni-ndk-sample/proguard-project.txt
106
108
/tls /server-tls-uart
107
109
/tls /server-tls-verifycallback
108
110
/tls /server-tls-writedup
109
-
111
+ / tls / server-tls-poll-perf
110
112
111
113
112
114
crypto /3des /3des-file-encrypt
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ int main(int argc, char** argv)
63
63
return 0 ;
64
64
}
65
65
66
+ #ifdef DEBUG_WOLFSSL
67
+ wolfSSL_Debugging_ON ();
68
+ #endif
66
69
67
70
68
71
/* Initialize wolfSSL */
@@ -174,11 +177,13 @@ int main(int argc, char** argv)
174
177
175
178
176
179
/* Save the session */
177
- session = wolfSSL_get_session (ssl );
180
+ session = wolfSSL_get1_session (ssl );
178
181
179
182
/* Close the socket */
180
183
wolfSSL_free (ssl );
184
+ ssl = NULL ;
181
185
close (sockfd );
186
+ sockfd = SOCKET_INVALID ;
182
187
183
188
184
189
@@ -197,7 +202,8 @@ int main(int argc, char** argv)
197
202
198
203
/* Set up to resume the session */
199
204
if ((ret = wolfSSL_set_session (sslRes , session )) != WOLFSSL_SUCCESS ) {
200
- fprintf (stderr , "ERROR: failed to set session\n" );
205
+ fprintf (stderr , "Failed to set session, make sure session ticket "
206
+ "(--enable-session-ticket) is enabled\n" );
201
207
goto exit ;
202
208
}
203
209
@@ -275,6 +281,8 @@ int main(int argc, char** argv)
275
281
/* Cleanup and return */
276
282
if (ssl )
277
283
wolfSSL_free (ssl ); /* Free the wolfSSL object */
284
+ if (sslRes )
285
+ wolfSSL_free (sslRes ); /* Free the wolfSSL object */
278
286
#ifdef OPENSSL_EXTRA
279
287
if (session )
280
288
wolfSSL_SESSION_free (session );
Original file line number Diff line number Diff line change @@ -312,8 +312,8 @@ int main(int argc, char** argv)
312
312
313
313
/* Set up to resume the session */
314
314
if ((ret = wolfSSL_set_session (sslRes , session )) != WOLFSSL_SUCCESS ) {
315
- fprintf (stderr , "Failed to set session, make sure session tickets "
316
- "(--enable-session ticket) is enabled\n" );
315
+ fprintf (stderr , "Failed to set session, make sure session ticket "
316
+ "(--enable-session- ticket) is enabled\n" );
317
317
/*goto exit;*/ /* not fatal */
318
318
}
319
319
You can’t perform that action at this time.
0 commit comments