conn: move tls handshake to conn_tls()
[pop3.git] / conn.h
blob3106979845e5f404e92adb83d6c4dd2c62623ad7
1 struct conn *conn_connect(char *addr, char *port);
2 int conn_tls(struct conn *conn, char *certfile);
3 int conn_write(struct conn *conn, char *buf, int len);
4 int conn_read(struct conn *conn, char *buf, int len);
5 int conn_close(struct conn *conn);