问题标签 [libssl]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
libcurl - libssl 读取错误 131 导致应用程序崩溃
我开发了一个将文件上传到 Dropbox 的应用程序。我正在使用 Libcurl (libcurl-7.21.7) 和 Openssl (0.9.8e) api 将文件上传到 Dropbox。我注意到有时我的应用程序由于服务器无响应而崩溃。我在控制台上遇到的错误是
SSL读取:错误:00000000:lib(0):func(0):reason(0),errno 131关闭连接#0
我已经在我的 POST 请求中实现了 CURL_TIMEOUT,但我仍然面临这个崩溃。如果超时时间很短,我会不断收到上传错误,如果时间太长,我会收到应用程序崩溃并出现上述错误。有没有办法解决请求中出现的问题以避免崩溃?
在调试中进一步发现崩溃实际上发生在 ssl 库中,因为应用程序崩溃了。
请问可以对此有所了解吗?
我使用的代码是:
android - 在原生 Android 应用程序中使用 libssl.so
我正在使用 NDK 为 Android 编写本机库(mylib.so)。Mylib.so 依赖于 libssl.so。
Android NDK 文档告诉我不应该使用 system/lib 中的 libssl.so,因为它不是稳定 API 的一部分。相反,我应该自己交叉编译 libssl 并将其添加到 NDK。
但是我看到 mylib.so 会自动与 system/lib/libssl.so 链接,因为 dalvik vm(正在加载 mylib.so)已经依赖于 libssl.so。
那么处理这个问题的正确方法是什么?仍然使用 system/lib/libssl.so 吗?
谢谢
openssl - Get AES Key from EVP_CIPHER_CTX
I'm using openssl trying to use an RSA public key, to encrypt an AES key, and use that AES to send large-ish data over HTTP(s) to a 3rd party site. I know that's a lot of encryption, the second layer comes when the network is down, and the data has to be cached on disk until it can be POST
ed.
I've been using the example code from this blog, a chunk of which is inlined below:
I'd like to stick with his aes_init()
function, but I can't find a way to get the key out of the EVP_CIPHER_CTX
once it has been initialised.
apropos
lists a few functions relating to EVP_CIPHER_CTX
:
EVP_CIPHER_CTX_set_key_length
looks promising, but is there then some magical offset from which I have to read the EVP_CIPHER_CTX
? Otherwise, I'll have to modify his function to return the key
(and the iv
), or throw away the function and inline the code.
The end goal here is to encrypt a large portion of data using AES, and encrypt the AES key using our RSA public key, base64 encode both, and broadcast them to the server. (Which I believe is the correct way of doing things)
The only issue then, is extracting the key from the EVP_CIPHER_CTX
.
c - 如何编译适用于 libcrypto.so.0.9.8 和 libcryto.so.1.0.0 的二进制文件?
我有一个 autotools C 项目。
如何编译适用于 libcrypto.so.0.9.8 和 libcryto.so.1.0.0 的二进制文件?(即 Ubuntu 9.10 和 12.04)
根据我进行构建的操作系统的年龄,二进制文件需要一个版本或另一个版本。
有没有办法让它不在乎,或者 libcryto 版本之间的差异是不可克服的?
hadoop - 如何在 Ubuntu 12.04 上构建 Hadoop(1.0.4) libhfs
我正在尝试在 Ubunutu 12.04 上为可安装的 hdfs构建 libhdfs,但我被困在第一步
1。在 HADOOP_HOME 中:ant compile-c++-libhdfs -Dlibhdfs=1
在这一步中,它将配置和制作实用程序和管道,但是当它配置管道它总是在
-lssl 中检查 HMAC_Init 失败...不
,我发现这个函数现在在 ubuntu 12.04 的 libcrypto 中,所以我修改 configure 以忽略这个检查并添加 -lcrypto 选项,这将在我手动配置和制作管道
但是当我再次使用蚂蚁时,它会重新生成配置并再次失败......
有什么方法可以纠正这个问题吗?
linux - installing libssl0.9.8 on debian 7
I'm trying to install uTorrent on debian 7 but every time I tried to run it got this error message :
I think that it no longer available on debian repository. I've tried to make some symlink to solve the problem, but again get the same message. how can I solve this problem?
ubuntu - 没有可用的版本信息
我正在使用 Ubuntu 12.04 - 服务器并不断获得:
/usr/lib/libcrypto.so.1.0.0:没有可用的版本信息(/usr/lib/libpython2.7.so.1.0 需要)
和
/usr/lib/libssl.so.1.0.0:没有可用的版本信息(/usr/lib/libpython2.7.so.1.0 需要)
没有任何模式的错误消息说明原因。它可以像运行 vi 一样简单。文件在那里,它们不是链接。
这在编译和安装 OpenLDAP 后开始发生,使用他们网站上的说明,同时学习 ldap 服务器的基础知识。我当然已经删除了 openLDAP 来尝试解决问题。我还重新安装了 OpenSSL 和 libssl1.0.0 以尝试测试该解决方案。
任何帮助将不胜感激,不幸的是谷歌没有用。
php - 如何在 Mac 10.8 上更新 libssl 文件
我尝试在我的 Mac(使用 Mountain Lion)上安装 apache+php+mysql 环境,但 php 不起作用。似乎问题与 libssl 文件有关。
当我尝试命令时
php -v
系统返回
dyld: Library not loaded: @loader_path/../lib/libssl.dylib
Referenced from: /usr/lib/libpq.5.dylib
Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later, but libssl.0.9.8.dylib provides version 0.9.8
Trace/BPT trap: 5
该文件的详细信息如下
-rwxr-xr-x 1 root wheel 402K Jul 25 2012 libssl.0.9.7.dylib
-rwxr-xr-x 1 root wheel 606K Sep 13 18:04 libssl.0.9.8.dylib
lrwxr-xr-x 1 root wheel 18B Jul 25 2012 libssl.dylib -> libssl.0.9.8.dylib
那么如何更新 libssl 文件的版本呢?
erlang - 在没有 root 权限的情况下安装 libssl-dev 和 libncurses5-dev
我正在尝试在运行 Ubuntu 13.04 的共享服务器空间上进行 Erlang R16B02 的前缀安装。由于这是共享空间,我没有 root 权限。系统已安装 OpenSSL 1.0.1c。
解压压缩包后,我像这样运行配置:
系统对 ncurses 进行了比较:
除了 ncurses(我可能没有它),我还需要 libssl-dev(我不能没有它)。我尝试在没有 ncurses 的情况下进行安装(使用 --without-termcap 标志),如下所示:
在这种情况下,配置成功,但加密失败:
如果我有 root 权限,我可以用 apt-get 解决这个问题:
但如果没有 apt-get,我不知道如何/从哪里获得这些资源。有人可以帮忙吗?
android - android 上的 Tcpdump 跟踪 - 无法加载“/system/bin/tcpdump”所需的库“libssl.so”
我需要在我的 android 设备上进行 tcpdump 跟踪。
我的设置:
将 tcpdump 文件推送到 sdcard
将文件复制到 /system/bin
赋予 tcpdump 文件 root 权限
从 Google Play安装BUSYBOX
运行 tcpdump 跟踪
我已经设法在三星 Galaxy S4 上做到这一点——效果很好。但是,它不适用于我的三星 Galaxy Tab。在 tcpdump 命令之后,我得到了错误:
两台设备都已植根,并且具有相同的 tcpdump 配置。我 在 /system/lib/ 中有libssl.so
三星Galaxy S4
三星 Galaxy Tab