Ubuntu下使用openssl编程
来源:互联网 发布:淘宝优惠群怎么起名字 编辑:程序博客网 时间:2024/05/29 18:38
学习需要,又得研究Ubuntu下的openssl编程,做做笔记吧!
1. 我的Ubuntu14下自带有openssl,运行“openssl version -a”,显示版本为“1.0.1f 6 Jan 2014”。
直接在程序中包含头文件用,提示找不到头文件,需要在命令行再运行一下“sudo apt-get install libssl-dev”,此时已可以进行编程了!
2. 在使用code::blocks进行具体的编程时,又出现了如下的问题:
总是提示“对‘DES_set_key_unchecked’未定义的引用”的引用问题,看来是编译时缺少了库,上网查了半天,总算有人给了个答案,试了一下,通过
g++ test.cpp -lcrypto,就是添加的-lcrypto,解释为openssl 的加密在crypto 库
code::blocks中添加链接库的方法:项目右键选择“Build options” -> "Linker Settings" -> "Other linker options",在此框中添加-lcrypto。或者直接在左边的"Link libraries"中添加“crypto”。
0 0
- Ubuntu下使用openssl编程
- Windows下使用OpenSSL编程全解
- ubuntu openssl编程接口
- ubuntu下安装openssl
- linux下openssl编程
- Linux下使用openssl库编程实现对称加密解密
- ubuntu 14.04下安装openssl
- ubuntu下安装openssl库
- ubuntu下如何安装openssl
- ubuntu 14.04下安装openssl
- linux下的openssl编程
- Linux下的OpenSSL编程
- Linux下的OpenSSL编程
- Linux下的OpenSSL编程
- Linux下的OpenSSL编程
- Linux下的OpenSSL编程
- 使用OpenSSL API安全编程
- 多线程环境下使用openssl
- Android apktool使用中遇到的问题
- Zap [bzoj 1101,POI 2007]
- C++中的单例模式
- java基础之抽象类和接口
- ButterKnife 懒人神器 使用步骤 备忘
- Ubuntu下使用openssl编程
- SQL server2012语法大全
- 价值观
- 《第一行代码》第8章 --通知的使用修正
- Linux常用命令复习
- @RequestMapping
- 【nginx】kevent() reported that connect() failed (61: Connection refused)
- Windows环境下实现Numpy、Scipy、Matlotlib、Scikit-learn的安装
- JAVA程序员必看的15本书