Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GmSSL-3.1.1-win64安装包DLL文件疑似不完整 #1772

Open
cn010 opened this issue Dec 8, 2024 · 3 comments
Open

GmSSL-3.1.1-win64安装包DLL文件疑似不完整 #1772

cn010 opened this issue Dec 8, 2024 · 3 comments

Comments

@cn010
Copy link

cn010 commented Dec 8, 2024

安装GmSSL-3.1.1-win64安装包,在其目录bin下仅有gmssl.dll一个动态链接库文件,使用gmssl-pytrhon,导入gmssl时,报错:FileNotFoundError: Could not find module…… 安装路径/gmssl.dll。一直以为是gmssl.dll或者python调用dll机制出了问题,后查询python的ctypes文档,才意识到是gmssl.dll依赖的其他dll文件确实导致。后使用第三方基于GmSSL-3.1.1编译的windows动态链接库(其目录下包含gmssl.dll、sdf_dummy.dll、skf_dummy.dll)才解决问题。建议修复该问题,若是GmSSL-3.1.1-win64安装包不支持直接使用,建议显著说明。

@jundayw
Copy link

jundayw commented Dec 12, 2024

方便分享一下你说的 “使用第三方基于GmSSL-3.1.1编译的windows动态链接库” 的详细内容么,我也遇到了类似问题,一直没有解决,谢谢

@cn010
Copy link
Author

cn010 commented Dec 13, 2024

csdn下载的,或者邮件联系我

方便分享一下你说的 “使用第三方基于GmSSL-3.1.1编译的windows动态链接库” 的详细内容么,我也遇到了类似问题,一直没有解决,谢谢
https://wenku.csdn.net/doc/735qkcbaz8或者https://download.csdn.net/download/zhouhengying123/88409128?utm_source=bbsseo,也可以邮件我shu#nobug.team索要

@ClayLivince
Copy link

ClayLivince commented Dec 24, 2024

实际上是 #1657 的问题
给后来人行个方便吧,需要的话自取
二选一,下载3.1.2 dev recompiled的话,覆盖安装好的bin目录下面的两个同名文件,下载dlls的话,将这两个dll放在安装好的bin目录里,至少暂时解决不能用的问题,也许。
如果你有安全顾虑(鉴于这是一个密码库,你应该有安全顾虑),自己找下vc140runtimed和ucrtbased两个dll丢在bin里也就能用了。
For your convenience, two solutions as you go.
Replace the gmssl.exe, gmssl.dll in the bin folder of installation position by files from gmssl 3.1.2 dev (recompiled).zip, OR put the files from dlls.zip at the 'bin' directory.
gmssl 3.1.2 dev(recompiled).zip
dlls.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants