好SMTP + SSL / TLS库对于C? [英] Good SMTP + SSL/TLS Library for C?

查看:157
本文介绍了好SMTP + SSL / TLS库对于C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我道歉,如果这个问题已经被问过。我做了类似的问题相当广泛搜索,但所有我能找到的是涉及到C ++或C#的答案。我使用GNU C。

I apologize if this question has been asked before. I did a rather extensive search for similar questions, however all I could find were answers related to C++ or C#. I'm using GNU C.

我正在写需要能够使用SMTP发送电子邮件的守护程序。我需要能够登录到外部邮件服务器,发送电子邮件和跨preT任何错误codeS。由于种种原因,我无法使用系统的sendmail的设备(如果连一个是present)。

I'm writing a daemon that needs to be able to send e-mail using SMTP. I need to be able to login to an external mail server, send the email and interpret any error codes. For various reasons, I can not use the system's sendmail facility (if even one is present).

图书馆至少应支持OpenSSL的。 GNUTLS将是一个振作,但并不真正需要的。

The library should support at least OpenSSL. GNUTLS would be a perk, but not really needed.

在理想情况下,该库将被许可LGPL2(或更高版本)或3条款BSD。

Ideally, the library would be licensed LGPL2 (and later) or 3 clause BSD.

有什么建议?

推荐答案

你有没有看CyaSSL?它支持所有现行行业标准高达1.2 TLS(以及一些很酷的功能,如流密码),有一个OpenSSL的兼容层,专注于优化速度和大小。

Have you looked at CyaSSL? It supports all current industry standards up to TLS 1.2 (as well as some cool features such as stream ciphers), has an OpenSSL compatibility layer, and focuses on optimizing speed and size.

它的双都采用GPLv2和商业许可授权(如果你需要支持)。我最近与一些Android的工作,我在做用它,很欣慰。

It's dual licensed under both GPLv2 and a commercial license (if you need support). I recently used it with some Android work I was doing and was very pleased.

http://yassl.com/yaSSL/Products_cyassl.html

问候,

克里斯

Regards,
Chris

这篇关于好SMTP + SSL / TLS库对于C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆