Skip to content

Commit bdbe184

Browse files
committed
test debug of libressl pss failure
add debugging printf to libressl On branch libressl-pss Changes to be committed: modified: setup-libressl.sh
1 parent abb2e63 commit bdbe184

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/setup-libressl.sh

+26
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,32 @@ if [ ! -d "$V" ]; then
1313
tar xzf $V.tar.gz
1414

1515
pushd $V
16+
#add patch here
17+
patch << EOF
18+
--- ./crypto/rsa/,rsa_pmeth.c 2025-01-15 09:47:34.808429739 -0600
19+
+++ ./crypto/rsa/rsa_pmeth.c 2025-01-15 10:36:55.859764137 -0600
20+
@@ -61,6 +61,10 @@
21+
#include <stdlib.h>
22+
#include <string.h>
23+
24+
+#include <execinfo.h>
25+
+#include <stdio.h>
26+
+#include <stdlib.h>
27+
+
28+
#include <openssl/opensslconf.h>
29+
30+
#include <openssl/asn1t.h>
31+
@@ -670,6 +674,9 @@
32+
else {
33+
saltlen = strtonum(value, 0, INT_MAX, &errstr);
34+
if (errstr != NULL) {
35+
+ fprintf(stderr, "DEE sizeof(saltlen):%ld\n", sizeof(saltlen));
36+
+ fprintf(stderr, "DEE strlen(value):%ld\n", strlen(value));
37+
+ fprintf(stderr, "DEE error value:\"%s\" errstr:\"%s\"\n", value, (errstr)?errstr:"NULL");
38+
RSAerror(RSA_R_INVALID_PSS_SALTLEN);
39+
return -2;
40+
}
41+
EOF
1642
./configure --prefix=/usr/local
1743
make -j $(nproc)
1844
popd

0 commit comments

Comments
 (0)