加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

SQLite 3.7.13的加密解密(二)—— 开放宏定义

发布时间:2020-12-13 00:11:02 所属栏目:百科 来源:网络整理
导读:SQLite 3.7.13的加密解密(二)—— 开放宏定义 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处、作者信息和本声明。否则将追究法律责任。 http://www.jb51.cc/article/p-aweplvzv-bhx.html 首先要在sqlite3.c中最前面,添加代码(网上有说

#ifndefSQLITE_HAS_CODEC

#defineSQLITE_HAS_CODEC

#endif

这个宏是用来确定是否支持加密的。添加上述代码后编译,会出现如下错误:

D:ResearchMySQLiteDebug/../src/sqlite3.c:80963: undefined reference to `sqlite3CodecAttach'

D:ResearchMySQLiteDebug/../src/sqlite3.c:80968: undefined reference to `sqlite3CodecGetKey'

D:ResearchMySQLiteDebug/../src/sqlite3.c:80970: undefined reference to `sqlite3CodecAttach'

srcsqlite3.o: In function `sqlite3Pragma':

D:ResearchMySQLiteDebug/../src/sqlite3.c:94023: undefined reference to `sqlite3_key'

D:ResearchMySQLiteDebug/../src/sqlite3.c:94026: undefined reference to `sqlite3_rekey'

D:ResearchMySQLiteDebug/../src/sqlite3.c:94038: undefined reference to `sqlite3_key'

D:ResearchMySQLiteDebug/../src/sqlite3.c:94040: undefined reference to `sqlite3_rekey'

D:ResearchMySQLiteDebug/../src/sqlite3.c:94048: undefined reference to `sqlite3_activate_see'

srcsqlite3.o: In function `sqlite3RunVacuum':

D:ResearchMySQLiteDebug/../src/sqlite3.c:101744: undefined reference to `sqlite3CodecGetKey'

本文出自 “rainman” 博客,请务必保留此出处http://www.52php.cn/article/p-aweplvzv-bhx.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

SQLite 3.7.13的加密解密(二)—— 开放宏定义 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处、作者信息和本声明。否则将追究法律责任。 http://www.52php.cn/article/p-aweplvzv-bhx.html

首先要在sqlite3.c中最前面,添加代码(网上有说在sqlite3.h中添加也可,实际测试在sqlite3.h中打开该宏是无效的):

    推荐文章
      热点阅读