static char *opensslv = NULL;
static char *provname = NULL;
static OSSL_PARAM counter_request[] = {
- { "openssl-version", OSSL_PARAM_UTF8_STRING_PTR,
+ { "openssl-version", OSSL_PARAM_UTF8_PTR,
&opensslv, sizeof(&opensslv), NULL },
- { "provider-name", OSSL_PARAM_UTF8_STRING_PTR,
+ { "provider-name", OSSL_PARAM_UTF8_PTR,
&provname, sizeof(&provname), NULL},
{ NULL, 0, NULL, 0, NULL }
};
size_t buf_l;
if (c_get_params(prov, counter_request)) {
- const char *versionp = *(void **)counter_request[0].buffer;
- const char *namep = *(void **)counter_request[1].buffer;
+ const char *versionp = *(void **)counter_request[0].data;
+ const char *namep = *(void **)counter_request[1].data;
sprintf(buf, "Hello OpenSSL %.20s, greetings from %s!",
versionp, namep);
} else {
}
*p->return_size = buf_l = strlen(buf) + 1;
- if (p->buffer_size >= buf_l)
- strncpy(p->buffer, buf, buf_l);
+ if (p->data_size >= buf_l)
+ strncpy(p->data, buf, buf_l);
else
ok = 0;
}