* SSL over the wire, including certificate checks. */
int ssl_negotiate (sslsockdata* ssldata)
{
- if (SSL_connect (ssldata->ssl) != 1)
+ int err;
+ const char* errmsg;
+
+#if OPENSSL_VERSION_NUMBER >= 0x0090600
+ /* This only exists in 0.9.6 and above. Without it we may get interrupted
+ * reads or writes. Bummer. */
+ SSL_set_mode (ssldata->ssl, SSL_MODE_AUTO_RETRY);
+#endif
+
+ if ((err = SSL_connect (ssldata->ssl)) != 1)
{
- unsigned long e;
- while ((e = ERR_get_error()) != 0)
+ switch (SSL_get_error (ssldata->ssl, err))
{
- mutt_error ("SSL failed: %s", ERR_reason_error_string(e));
- sleep (1);
+ case SSL_ERROR_SYSCALL:
+ errmsg = "I/O error";
+ break;
+ case SSL_ERROR_SSL:
+ errmsg = "unspecified protocol error";
+ break;
+ default:
+ errmsg = "unknown error";
}
+
+ mutt_error ("SSL failed: %s", errmsg);
+ sleep (1);
+
return -1;
}
#
msgid ""
msgstr ""
-"Project-Id-Version: mutt-1.3.11i\n"
+"Project-Id-Version: mutt-1.3.15i\n"
"POT-Creation-Date: 2001-02-12 18:52+0100\n"
-"PO-Revision-Date: 2000-11-01 19:35+0200\n"
+"PO-Revision-Date: 2001-02-13 15:20+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=koi8-r\n"
"Content-Transfer-Encoding: 8bit\n"
msgstr "<ÐÏ ÕÍÏÌÞÁÎÉÀ>"
#: compose.c:132
-#, fuzzy
msgid "(e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? "
-msgstr ""
-"(e)ÛÉÆÒ, (s)ÐÏÄÐÉÓØ, (a)ÐÏÄÐÉÓØ ËÁË, (b)ÏÂÁ, (m)ic-ÁÌÇÏÒÉÔÍ, (f)ÏÔËÁÚÁÔØÓÑ? "
+msgstr "(e)ÛÉÆÒ, (s)ÐÏÄÐÉÓØ, (a)ÐÏÄÐÉÓØ ËÁË, (b)ÏÂÁ, (f)ÏÔËÁÚÁÔØÓÑ? "
#: compose.c:133
-#, fuzzy
msgid "esabf"
-msgstr "esabmf"
+msgstr "esabf"
#: compose.c:147
msgid "Sign as: "
"ÎÉÍ."
#: imap/imap.c:315
-#, fuzzy, c-format
+#, c-format
msgid "Connection to %s failed."
-msgstr "õÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÓÏÅÄÉÎÅÎÉÅ Ó %s..."
+msgstr "îÅ ÕÄÁÌÏÓØ ÕÓÔÁÎÏ×ÉÔØ ÓÏÅÄÉÎÅÎÉÅ Ó %s."
#: imap/imap.c:453
#, c-format
msgstr "ÐÏËÁÚÁÔØ ×ÌÏÖÅÎÉÅ ËÁË ÔÅËÓÔ"
#: keymap_alldefs.h:8
-#, fuzzy
msgid "Toggle display of subparts"
-msgstr "ÒÁÚÒÅÛÉÔØ/ÚÁÐÒÅÔÉÔØ ÏÔÏÂÒÁÖÅÎÉÅ ÃÉÔÉÒÕÅÍÏÇÏ ÔÅËÓÔÁ"
+msgstr "òÁÚÒÅÛÉÔØ/ÚÁÐÒÅÔÉÔØ ÏÔÏÂÒÁÖÅÎÉÅ ÞÁÓÔÅÊ ÄÁÊÄÖÅÓÔÁ"
#: keymap_alldefs.h:9
msgid "move to the bottom of the page"
msgstr "ÕÄÁÌÉÔØ ÓÏÏÂÝÅÎÉÑ ÐÏ ÏÂÒÁÚÃÕ"
#: keymap_alldefs.h:105
-#, fuzzy
msgid "force retrieval of mail from IMAP server"
-msgstr "ÚÁÂÒÁÔØ ÐÏÞÔÕ Ó POP-ÓÅÒ×ÅÒÁ"
+msgstr "ÚÁÂÒÁÔØ ÐÏÞÔÕ Ó IMAP-ÓÅÒ×ÅÒÁ"
#: keymap_alldefs.h:106
msgid "retrieve mail from POP server"
msgstr "îÅ ÕÄÁÌÏÓØ ÐÏÌÕÞÉÔØ ÓÅÒÔÉÆÉËÁÔ ÓÅÒ×ÅÒÁ"
#: mutt_ssl.c:257
-#, fuzzy, c-format
+#, c-format
msgid "SSL connection using %s (%s)"
-msgstr "SSL-ÓÏÅÄÉÎÅÎÉÅ ÕÓÔÁÎÏ×ÌÅÎÏ; ÁÌÇÏÒÉÔÍ ÛÉÆÒÏ×ÁÎÉÑ %s"
+msgstr "SSL-ÓÏÅÄÉÎÅÎÉÅ ÕÓÔÁÎÏ×ÌÅÎÏ; ÁÌÇÏÒÉÔÍ ÛÉÆÒÏ×ÁÎÉÑ %s (%s)"
#: mutt_ssl.c:287
msgid "Unknown"
#. getDate has its own error message, don't overwrite it here
#: pattern.c:527
-#, fuzzy, c-format
+#, c-format
msgid "Invalid relative date: %s"
-msgstr "îÅ×ÅÒÎÏÅ ÎÁÚ×ÁÎÉÅ ÍÅÓÑÃÁ: %s"
+msgstr "îÅ×ÅÒÎÏ ÕËÁÚÁÎÁ ÏÔÎÏÓÉÔÅÌØÎÁÑ ÄÁÔÁ: %s"
#: pattern.c:541
msgid "error in expression"
msgstr "÷ÌÏÖÅÎÉÑ"
#: recvattach.c:919
-#, fuzzy
msgid "There are no subparts to show!"
-msgstr "÷ÌÏÖÅÎÉÊ ÎÅÔ."
+msgstr "äÁÊÄÖÅÓÔ ÎÅ ÓÏÄÅÒÖÉÔ ÎÉ ÏÄÎÏÊ ÞÁÓÔÉ!"
#: recvattach.c:967
msgid "Can't delete attachment from POP server."
msgstr "îÅ ÕÄÁÌÏÓØ ÏÔËÒÙÔØ ×ÒÅÍÅÎÎÙÊ ÆÁÊÌ %s."
#: recvcmd.c:398
-#, fuzzy
msgid "Forward as attachments?"
-msgstr "ÐÏËÁÚÁÔØ ×ÌÏÖÅÎÉÑ"
+msgstr "ðÅÒÅÓÌÁÔØ ËÁË ×ÌÏÖÅÎÉÑ?"
#: recvcmd.c:412
msgid "Can't decode all tagged attachments. MIME-forward the others?"
msgstr "îÅ ÕÄÁÌÏÓØ ×ÓÔÁ×ÉÔØ ×ÓÅ ÚÁÔÒÅÂÏ×ÁÎÎÙÅ ÓÏÏÂÝÅÎÉÑ!"
#: send.c:739
-#, fuzzy
msgid "Forward as attachment?"
-msgstr "îÁÐÅÞÁÔÁÔØ ×ÌÏÖÅÎÉÅ?"
+msgstr "ðÅÒÅÓÌÁÔØ ËÁË ×ÌÏÖÅÎÉÅ?"
#: send.c:743
msgid "Preparing forwarded message..."