Skip to content

Commit

Permalink
fix tls_ssl_key_log_file example
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Aug 15, 2024
1 parent 08df35f commit 188d522
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/examples/tls_ssl_key_log_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#endif
#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
#include <unistd.h>
#endif

namespace {

Expand Down Expand Up @@ -201,7 +204,9 @@ class DtlsConnection : public Botan::TLS::Callbacks {
if(fd) {
#if defined(BOTAN_TARGET_OS_HAS_SOCKETS)
shutdown(fd, SHUT_RDWR);
#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
::close(fd);
#endif
#endif
}
}
Expand Down

0 comments on commit 188d522

Please sign in to comment.