defensive-coding-guide/pot/Features/snippets/TLS-OpenSSL-Connection-Close.pot

45 lines
1 KiB
Text

#
# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2013-08-13T01:54:52\n"
"PO-Revision-Date: 2013-08-13T01:54:52\n"
"Last-Translator: Automatically generated\n"
"Language-Team: None\n"
"MIME-Version: 1.0\n"
"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: programlisting
#, no-c-format
msgid "\n"
"// Send the close_notify alert.\n"
"ret = SSL_shutdown(ssl);\n"
"switch (ret) {\n"
"case 1:\n"
" // A close_notify alert has already been received.\n"
" break;\n"
"case 0:\n"
" // Wait for the close_notify alert from the peer.\n"
" ret = SSL_shutdown(ssl);\n"
" switch (ret) {\n"
" case 0:\n"
" fprintf(stderr, \"info: second SSL_shutdown returned zero\n"
"\");\n"
" break;\n"
" case 1:\n"
" break;\n"
" default:\n"
" ssl_print_error_and_exit(ssl, \"SSL_shutdown 2\", ret);\n"
" }\n"
" break;\n"
"default:\n"
" ssl_print_error_and_exit(ssl, \"SSL_shutdown 1\", ret);\n"
"}\n"
"SSL_free(ssl);\n"
"close(sockfd);\n"
""
msgstr ""