Fix windows build.
Windows doesn't like struct literals: ..\decrepit\dsa\dsa_decrepit.c(85) : warning C4204: nonstandard extension used : non-constant aggregate initializer Change-Id: I12541f2883ecbb10c85cddfae8d2adbbb1365ae3 Reviewed-on: https://boringssl-review.googlesource.com/7364 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
6e96eaebe0
commit
cdd7048358
@ -82,8 +82,12 @@ DSA *DSA_generate_parameters(int bits, uint8_t *seed_in, int seed_len,
|
||||
BN_GENCB gencb_storage;
|
||||
BN_GENCB *cb = NULL;
|
||||
|
||||
struct wrapped_callback wrapped = {callback, cb_arg};
|
||||
struct wrapped_callback wrapped;
|
||||
|
||||
if (callback != NULL) {
|
||||
wrapped.callback = callback;
|
||||
wrapped.arg = cb_arg;
|
||||
|
||||
cb = &gencb_storage;
|
||||
BN_GENCB_set(cb, callback_wrapper, &wrapped);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user