Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gauche-0.9.8_rc1 (以前からだけど) の rfc.tls モジュールのテストで失敗するログ
All AES tests passed
All MD5 tests passed
All SHA1 tests passed
All SHA256 tests passed
All SHA384 tests passed
All SHA512 tests passed
All HMAC tests passed
All BIGINT tests passed
All RSA tests passed
invalid digest: 2a 86 48 ce 38 04 03
Error: Invalid X509 ASN.1 file (Unsupported digest)
invalid digest: 2a 86 48 ce 3d 04 03 03
Error: Invalid X509 ASN.1 file (Unsupported digest)
All Certificate tests passed
SSL basic test passed
system: executing (sh C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/killopenssl.sh)
SSL unblocked test passed
system: executing (sh C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/killopenssl.sh)
### starting client tests
system: executing (sh C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/kick_openssl.sh s_server -cipher DEFAULT@SECLEVEL=1 -accept 19002 -quiet -cert C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/axTLS.x509_1024.pem -key C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/axTLS.key_1024.pem)
could not start socket on 19002
Error: SSL error -1
Error: A client test failed
system: executing (sh C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/killopenssl.sh)
system: executing (sh C:/msys64/home/saito/Gauche-0.9.8_rc1/ext/tls/axTLS/ssl/test/killgnutls.sh)
@shirok

This comment has been minimized.

Copy link

shirok commented Jun 7, 2019

これで何か差が出ますか?

diff --git a/ext/tls/axTLS/ssl/test/ssltest.c b/ext/tls/axTLS/ssl/test/ssltest.c
index 7929f79..62a48ae 100644
--- a/ext/tls/axTLS/ssl/test/ssltest.c
+++ b/ext/tls/axTLS/ssl/test/ssltest.c
@@ -1619,7 +1619,7 @@ static int SSL_client_test(
 #endif
     }
     
-    usleep(200000);           /* allow server to start */
+    usleep(1000000);           /* allow server to start */
 
     if (*ssl_ctx == NULL)
     {
@shirok

This comment has been minimized.

Copy link

shirok commented Jun 7, 2019

あ、あとopensslは入ってますよね?

@SaitoAtsushi

This comment has been minimized.

Copy link
Owner Author

SaitoAtsushi commented Jun 7, 2019

usleep の値を変えてもエラーの内容は同じでした。 念のために更に十倍の値にしてみたりもしましたが、変化はありません。

openssl が入っていることは確認できました。

$ which openssl
/mingw64/bin/openssl

$ openssl version
OpenSSL 1.1.1c  28 May 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.