Commit 17fd5df
committed
Refactor: OCSP object allocation
Refactors OCSP object allocation and freeing:
- Introduces `wc_NewOCSP` to allocate and initialize `WOLFSSL_OCSP` objects with error handling.
- Introduces `wc_FreeOCSP` to free `WOLFSSL_OCSP` objects.
- Simplifies OCSP usage in tests by using the new allocation/freeing functions.
- Remove `wc_InitOCSP` since `WOLFSSL_OCSP` is an opaque struct1 parent 550e5a2 commit 17fd5df
3 files changed
Lines changed: 27 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | | - | |
769 | | - | |
| 768 | + | |
770 | 769 | | |
771 | 770 | | |
772 | 771 | | |
| |||
798 | 797 | | |
799 | 798 | | |
800 | 799 | | |
801 | | - | |
| 800 | + | |
802 | 801 | | |
803 | | - | |
804 | | - | |
805 | 802 | | |
806 | | - | |
807 | | - | |
| 803 | + | |
| 804 | + | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
811 | 808 | | |
812 | | - | |
813 | | - | |
| 809 | + | |
814 | 810 | | |
815 | 811 | | |
816 | 812 | | |
| |||
829 | 825 | | |
830 | 826 | | |
831 | 827 | | |
832 | | - | |
833 | | - | |
| 828 | + | |
834 | 829 | | |
835 | 830 | | |
836 | 831 | | |
| |||
855 | 850 | | |
856 | 851 | | |
857 | 852 | | |
858 | | - | |
| 853 | + | |
859 | 854 | | |
860 | | - | |
861 | | - | |
| 855 | + | |
862 | 856 | | |
863 | 857 | | |
864 | 858 | | |
865 | 859 | | |
866 | | - | |
867 | | - | |
| 860 | + | |
868 | 861 | | |
869 | 862 | | |
870 | 863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments