jjzjj

libcrypto

全部标签

c - OpenSSL 库 : 2 on Linux libcrypto and libssl and more than 13 on windows. 我应该在 Windows 上链接什么来编译我的示例?

所以我看this示例代码:#include#include#include"openssl/sha.h"voidsha256(char*string,charoutputBuffer[65]){unsignedcharhash[SHA256_DIGEST_LENGTH];SHA256_CTXsha256;SHA256_Init(&sha256);SHA256_Update(&sha256,string,strlen(string));SHA256_Final(hash,&sha256);inti=0;for(i=0;i我应该将哪些库链接到我的项目以在Windows上编译它?

c++ - 我在 Windows 上的 libcrypto 链接有什么问题?

我正在尝试使用Cygwin和Windows将我的C++程序链接到libcrypto库。我的.cc文件中有这个#include我在usr/include/openssl中有头文件dh.h我在/usr/lib/中有所需的文件(libeay32.dll和ssleay32.dll),但是,当我构建时(使用python构建工具node-waf),我收到诸如undefinedreference之类的错误到_DH_new我在构建脚本的cxxflags部分尝试了各种东西,现在看起来像这样:ppp.cxxflags=["-g","-D_FILE_OFFSET_BITS=64","-D_LARGEFILE

c++ - openssl 内存泄漏 : me or bug?

尝试使用openssl(1.0.2p)解析来自证书的信息,无法使其无泄漏。代码:std::ifstreamfst("2048b-rsa-example-cert.der",std::ios::binary);std::vectorcertificate((std::istreambuf_iterator(fst)),std::istreambuf_iterator());conststd::uint8_t*data=certificate.data();X509*info=d2i_X509(nullptr,&data,certificate.size());X509_free(info

c++ - 使用 g++ 静态链接到 libcrypto++

我正在尝试使用DebianWheezy和g++4.7在我的系统上编译一个程序。我希望它能够在另一个带有DebianSqueeze的系统上运行(并且没有最近的g++)。我无法在Squeeze上编译程序,因为我使用了旧g++不支持的某些C++11功能,以及新的Boost版本和libcrypto++9。据我了解,解决此问题的常用方法是静态链接其他系统不支持的库,在我的情况下为libstdc、boost和crypto++.我现在的(链接)编译器调用是g++-4.7.obj/btcmirco.o-Wl,-Bstatic-lboost_program_options-lboost_system-l

c++ - 与 libcrypto : undefined reference to `__imp__CertFreeCertificateContext' 的链接问题

我正在尝试交叉编译cachecoin使用gitian的Linux主机上的二进制文件和i686-w64-mingw用于Windows目标。编译工作正常,直到依赖项的静态链接的最后一步。这是我得到的:/home/ubuntu/staging32/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x1ff):undefinedreferenceto`__imp__CertFreeCertificateContext@4'Google建议它缺少-lcrypto链接甚至-lcrypt32。但是在它失败之前的最后一行中,您可以看到它正在链接两者。这里有什么问题?

java - 找不到 'tcgetattr' 引用的符号 "libcrypto.so"

我正在为Android应用构建一个帮助程序库,我需要为我正在使用的一些支持库提供完整的OpenSSL实现。我正在创建一个构建链并用它编译libssl和libcrypto但在运行时我得到:java.lang.ExceptionInInitializerErrorCausedby:java.lang.UnsatisfiedLinkError:Cannotloadlibrary:soinfo_relocate(linker.cpp:975):cannotlocatesymbol"tcgetattr"referencedby"libcrypto.so.1.0.0"...我猜我需要做些什么来帮助

python - Libssl 和 libcrypto 导致 dyld : Library not loaded:/usr/lib/libpq. 5.dylib

我最近卸载了postgresql并通过pip安装了pyscopg2。我知道libcrypto和libssl有一些诡计目前我将它们链接到:$ls-lahlibssl.*-rwxr-xr-x1rootwheel402KAug2811:06libssl.0.9.7.dylib-rwxr-xr-x1rootwheel589KAug2811:06libssl.0.9.8.dyliblrwxr-xr-x1rootwheel55BNov2923:38libssl.1.0.0.dylib->/usr/local/Cellar/openssl/1.0.1c/lib/libssl.1.0.0.dylibl

解决libssl.so.1.1 libcrypto.so.1.1依赖问题

本来调试电脑的虚拟机环境是好的,换了一台笔记本编译项目的时候,make后出现问题:/usr/bin/ld:warning:libssl.so.1.1,neededby/usr/local/lib/libonvifptz.so,notfound(tryusing-rpathor-rpath-link)/usr/bin/ld:warning:libcrypto.so.1.1,neededby/usr/local/lib/libonvifptz.so,notfound(tryusing-rpathor-rpath-link)/usr/bin/ld:/usr/local/lib/libonvifptz

c++ - 多线程 curl 请求的段错误

我在使用C++程序时遇到了一些问题。基本上我已经为http请求编写了一个简单的包装器,能够一次执行多个请求。工作得很好,但是当我做httpS请求时,它在多线程模式下随机崩溃。我正在使用curl和posix线程。回溯看起来像这样:=======Backtrace:=========/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7fea9046d996]/lib/x86_64-linux-gnu/libc.so.6(+0x82b80)[0x7fea9046fb80]/lib/x86_64-linux-gnu/libc.so.6(realloc+0x

c++ - 多线程 curl 请求的段错误

我在使用C++程序时遇到了一些问题。基本上我已经为http请求编写了一个简单的包装器,能够一次执行多个请求。工作得很好,但是当我做httpS请求时,它在多线程模式下随机崩溃。我正在使用curl和posix线程。回溯看起来像这样:=======Backtrace:=========/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7fea9046d996]/lib/x86_64-linux-gnu/libc.so.6(+0x82b80)[0x7fea9046fb80]/lib/x86_64-linux-gnu/libc.so.6(realloc+0x