pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/nodejs16/patches



Module Name:    pkgsrc
Committed By:   mef
Date:           Sun Jun  5 06:56:15 UTC 2022

Added Files:
        pkgsrc/lang/nodejs16/patches: patch-src_crypto_crypto__rsa.cc

Log Message:
(lang/nodejs16) Fix build for NetBSD 9.0, for OpenSSL 1.1.1d

the patch is copied from old nodejs(16) and modified some to apply,
not really checked under 9.0 environment except patch being applied.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc
diff -u /dev/null pkgsrc/lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc:1.1
--- /dev/null   Sun Jun  5 06:56:15 2022
+++ pkgsrc/lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc        Sun Jun  5 06:56:15 2022
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_crypto_crypto__rsa.cc,v 1.1 2022/06/05 06:56:15 mef Exp $
+
+Fix build with old OpenSSL 1.1.1d, as in NetBSD 9.0
+
+--- src/crypto/crypto_rsa.cc.orig      2022-06-02 04:23:16.000000000 +0900
++++ src/crypto/crypto_rsa.cc   2022-06-05 15:40:17.350690631 +0900
+@@ -13,6 +13,30 @@
+ #include <openssl/bn.h>
+ #include <openssl/rsa.h>
+ 
++#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER <0x1010105fL
++struct rsa_st {
++  int pad;
++  int32_t version;
++  void *meth;
++  void *engine;
++  void *n;
++  void *e;
++  void *d;
++  void *p;
++  void *q;
++  void *dmp1;
++  void *dmq1;
++  void *iqmp;
++  void *prime_infos;
++  RSA_PSS_PARAMS *pss;
++};
++
++static const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r)
++{
++  return r->pss;
++}
++#endif
++
+ namespace node {
+ 
+ using v8::FunctionCallbackInfo;



Home | Main Index | Thread Index | Old Index