ssl_error(agooErr err, const char *filename, int line) {
    char		buf[224];
    unsigned long	e = ERR_get_error();

    ERR_error_string_n(e, buf, sizeof(buf));

    return agoo_err_set(err, AGOO_ERR_TLS, "%s at %s:%d", buf, filename, line);
}
ssl_error(agooErr err, const char *filename, int line) {
    char		buf[224];
    unsigned long	e = ERR_get_error();

    ERR_error_string_n(e, buf, sizeof(buf));

    return agoo_err_set(err, AGOO_ERR_TLS, "%s at %s:%d", buf, filename, line);
}