- 授权协议: MIT
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/h2o/neverbleed
软件介绍
Neverbleed 是 OpenSSL 引擎,它可以在一个独立的进程中运行 RSA 私钥操作,从而最大程度上减少类似心脏出血这种漏洞所带来的泄密风险。
此引擎可同时在 OpenSSL 和 LibreSSL 现有版本下工作,并且不怎么需要修改源代码。
示例代码:
neverbleed_t nb; char errbuf[NEVERBLEED_ERRBUF_SIZE]; /* initialize the OpenSSL library and the neverbleed engine */ SSL_load_error_strings(); SSL_library_init(); OpenSSL_add_all_algorithms(); if (neverbleed_init(&nb, errbuf) != 0) { fprintf(stderr, "neverbleed_init failed: %s\n", errbuf); ... } ... /* load certificate chain and private key */ if (SSL_CTX_use_certificate_chain_file(ssl_ctx, certchain_fn) != 1) { fprintf(stderr, "failed to load certificate chain file:%s\n", certchain_fn); ... } if (neverbleed_load_private_key_file(&nb, ctx, privkey_fn, errbuf) != 1) { fprintf(stderr, "failed to load private key from file:%s:%s\n", privkey_fn, errbuf); ... }
深入应用C++11
祁宇 / 机械工业出版社 / 2015-5 / 79
在StackOverflow的最近一次世界性调查中,C++11在所有的编程语言中排名第二, C++11受到程序员的追捧是毫不意外的,因为它就像C++之父Bjarne Stroustrup说的:它看起来就像一门新的语言。C++11新增加了相当多的现代编程语言的特性,相比C++98/03,它在生产力、安全性、性能和易用性上都有了大幅提高。比如auto和decltype让我们从书写冗长的类型和繁琐的类型......一起来看看 《深入应用C++11》 这本书的介绍吧!