Commit 178e646
Use RSA_generate_key_ex instead of deprecated RSA_generate_key
* Make use of RSA_generate_key_ex().
openssl 0.9.8 deprecated RSA_generate_key (see https://www.openssl.org/docs/man1.1.1/man3/RSA_generate_key.html)
openssl 1.1.0 it is not possible anymore to generate the BN_GENCB structure directly (see https://www.openssl.org/docs/man1.1.1/man3/BN_GENCB_new.html)
* RSA_generate_kex_ex(): add check for libreSSL
see: #100 (comment)
* SSLeay.xs: add error handling for RSA_new, BN_new and BN_GENCB calls.
* Free more before calling croak.1 parent 20ecb22 commit 178e646
2 files changed
+40
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5744 | 5744 | | |
5745 | 5745 | | |
5746 | 5746 | | |
5747 | | - | |
| 5747 | + | |
5748 | 5748 | | |
5749 | 5749 | | |
5750 | 5750 | | |
| |||
5755 | 5755 | | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | | - | |
5759 | | - | |
| 5758 | + | |
| 5759 | + | |
| 5760 | + | |
| 5761 | + | |
| 5762 | + | |
| 5763 | + | |
5760 | 5764 | | |
5761 | 5765 | | |
5762 | 5766 | | |
5763 | 5767 | | |
| 5768 | + | |
| 5769 | + | |
5764 | 5770 | | |
5765 | 5771 | | |
5766 | | - | |
5767 | | - | |
5768 | 5772 | | |
5769 | 5773 | | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
| 5778 | + | |
| 5779 | + | |
| 5780 | + | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
5770 | 5794 | | |
5771 | | - | |
5772 | | - | |
5773 | | - | |
| 5795 | + | |
5774 | 5796 | | |
5775 | 5797 | | |
| 5798 | + | |
| 5799 | + | |
| 5800 | + | |
| 5801 | + | |
5776 | 5802 | | |
5777 | 5803 | | |
5778 | 5804 | | |
| |||
0 commit comments