51 if (getenv(
"UCSPITLS")) {
55 fdstr = session.
getEnv(
"SSLCTLFD");
56 fd = std::stoi(fdstr);
57 if (write(fd,
"Y",1) < 1)
return NOTHING;
60 fdstr = session.
getEnv(
"SSLREADFD");
61 fd = std::stoi(fdstr);
62 if (fcntl(fd,F_GETFL,0) == -1)
return NOTHING;
64 if (fcntl(fd,F_DUPFD,0) == -1)
return NOTHING;
67 fdstr = session.
getEnv(
"SSLWRITEFD");
68 fd = std::stoi(fdstr);
69 if (fcntl(fd,F_GETFL,0) == -1)
return NOTHING;
71 if (fcntl(fd,F_DUPFD,1) == -1)
return NOTHING;
88 bincClient <<
"* ENABLED StartTLS - begin negotiation now" << endl;
const std::string & getTag(void) const
void setName(const std::string &s_in)
bool getUidMode(void) const
void setLastError(const std::string &error) const
struct Binc::Session::@3 command
static Session & getInstance(void)
std::string getEnv(const std::string &key)
virtual ParseResult parse(Request &) const
int goStartTLS(void) const
ProcessResult process(Depot &, Request &)
const std::string getName(void) const
Declaration of the IODevice class.
Declaration of the IOFactory class.
Operator::ParseResult expectCRLF(void)
Declaration of all operators.
Declaration of a recursive descent IMAP command parser.