2
2
3
3
=head1 NAME
4
4
5
- OSSL_PARAM_BLD_init , OSSL_PARAM_BLD_to_param,
5
+ OSSL_PARAM_BLD_new , OSSL_PARAM_BLD_to_param, OSSL_PARAM_BLD_free_params ,
6
6
OSSL_PARAM_BLD_free, OSSL_PARAM_BLD_push_int, OSSL_PARAM_BLD_push_uint,
7
7
OSSL_PARAM_BLD_push_long, OSSL_PARAM_BLD_push_ulong,
8
8
OSSL_PARAM_BLD_push_int32, OSSL_PARAM_BLD_push_uint32,
@@ -24,7 +24,8 @@ OSSL_PARAM_BLD_push_octet_string, OSSL_PARAM_BLD_push_octet_ptr
24
24
25
25
void OSSL_PARAM_BLD_init(OSSL_PARAM_BLD *bld);
26
26
OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld);
27
- void OSSL_PARAM_BLD_free(OSSL_PARAM *params);
27
+ void OSSL_PARAM_BLD_free_params(OSSL_PARAM *params);
28
+ void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld);
28
29
29
30
int OSSL_PARAM_BLD_push_TYPE(OSSL_PARAM_BLD *bld, const char *key, TYPE val);
30
31
@@ -52,12 +53,15 @@ OSSL_PARAM_BLD_init() initialises the OSSL_PARAM_BLD structure so that values
52
53
can be added.
53
54
Any existing values are cleared.
54
55
56
+ OSSL_PARAM_BLD_free() deallocates the memory allocates by OSSL_PARAM_BLD_new().
57
+
55
58
OSSL_PARAM_BLD_to_param() converts a built up OSSL_PARAM_BLD structure
56
59
I<bld> into an allocated OSSL_PARAM array.
57
60
The OSSL_PARAM array and all associated storage must be freed by calling
58
- OSSL_PARAM_BLD_free() with the functions return value.
61
+ OSSL_PARAM_BLD_free_params() with the functions return value.
62
+ OSSL_PARAM_BLD_free() can safely be called any time after this function is.
59
63
60
- OSSL_PARAM_BLD_free () deallocates the memory allocated by
64
+ OSSL_PARAM_BLD_free_params () deallocates the memory allocated by
61
65
OSSL_PARAM_BLD_to_param().
62
66
63
67
=begin comment
@@ -156,9 +160,10 @@ private key.
156
160
|| !OSSL_PARAM_BLD_push_BN(&bld, "d", d)
157
161
|| (params = OSSL_PARAM_BLD_to_param(&bld)) == NULL)
158
162
goto err;
163
+ OSSL_PARAM_BLD_free(bld);
159
164
/* Use params */
160
165
...
161
- OSSL_PARAM_BLD_free (params);
166
+ OSSL_PARAM_BLD_free_params (params);
162
167
163
168
=head2 Example 2
164
169
@@ -173,9 +178,10 @@ public key.
173
178
|| !OSSL_PARAM_BLD_push_BN(&bld, "d", d)
174
179
|| (params = OSSL_PARAM_BLD_to_param(&bld)) == NULL)
175
180
goto err;
181
+ OSSL_PARAM_BLD_free(bld);
176
182
/* Use params */
177
183
...
178
- OSSL_PARAM_BLD_free (params);
184
+ OSSL_PARAM_BLD_free_params (params);
179
185
180
186
=head1 SEE ALSO
181
187
0 commit comments