小肚子

Results 16 comments of 小肚子

> I created an ESM version, not yet published on NPM as default, but you can try it like this: `npm install --save @lapo/asn1js@next` import error import ASN1 from '@lapo/asn1js';...

> > I created an ESM version, not yet published on NPM as default, but you can try it like this: `npm install --save @lapo/asn1js@next` > > import error >...

不行,加了endl还是会截断,导致后面的新日志无法在控制台打印,请问有什么好的解决方法吗?

> @changhr2013 > > 我公司 arm kylin v10 的服务器上 openssl 版本是 1.1.1f,生成的国密公私钥OID就是`1.2.156.10197.1.301`,可是坑了我一把。😂 这个算是个bug,升级到openssl最新版本就能解决。 相关issue在这里,有过不少讨论 https://github.com/openssl/openssl/issues/20973

> > > @changhr2013 > > > 我公司 arm kylin v10 的服务器上 openssl 版本是 1.1.1f,生成的国密公私钥OID就是`1.2.156.10197.1.301`,可是坑了我一把。😂 > > > > > > 这个算是个bug,升级到openssl最新版本就能解决。 相关issue在这里,有过不少讨论 [openssl/openssl#20973](https://github.com/openssl/openssl/issues/20973) > > 也不算是bug吧,上面我引用了很多,其中就有这个,只是标准太模糊了 算是标准的锅,标准描述与附录里的示例不一致,但是目前国内还是以附录为准,所以openssl也就跟着调整了。

I checked the commit history,the code was adjusted to adapt to UMP。 Because my program only runs on win7/win10/win11。 So,I pull the latest code,make the following changes。 ``` #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)...

> 看起来你需要用这个: > > ``` > #include > > int SSL_get_error(const SSL *ssl, int ret); > ``` 谢谢,我尝试过使用这个函数,好像不太对,因为按照文档的描述,SSL_do_handshake返回1时表示握手成功完成,双向认证不发送客户端证书也会返回1,导致无法判断握手是不是真的成功。 我也尝试过使用SSL_set_msg_callback、SSL_set_msg_callback_arg这两个函数来获取Alert警告,但是只能获取到了客户端向服务端发送的close notify,服务端响应回的Alert获取不到。 因为要连接的服务不确定是HTTPS Server还是普通的TLCP Server,只是想检查握手有没有问题,确保服务端配置是可用的。

我们用的tengine,最新版本已经支持Tongsuo,但是与nginx对比,代码较老,会有些漏洞。 或者参考这个链接 https://www.tongsuo.net/docs/features/angie