Code format

This commit is contained in:
Bruno Silvestre 2022-07-20 17:39:20 -03:00
parent c9539bca86
commit f22b3ea609

View File

@ -689,11 +689,10 @@ static int meth_exportkeyingmaterial(lua_State *L)
size_t contextlen = 0; size_t contextlen = 0;
const unsigned char *context = NULL; const unsigned char *context = NULL;
if(!lua_isnoneornil(L, 4)) { if (!lua_isnoneornil(L, 4))
context = (unsigned char*)luaL_checklstring(L, 4, &contextlen); context = (unsigned char*)luaL_checklstring(L, 4, &contextlen);
}
/* temporary buffer memory-managed by Lua itself */ /* Temporary buffer memory-managed by Lua itself */
unsigned char *out = lua_newuserdata(L, olen); unsigned char *out = lua_newuserdata(L, olen);
if(SSL_export_keying_material(ssl->ssl, out, olen, label, llen, context, contextlen, context != NULL) != 1) { if(SSL_export_keying_material(ssl->ssl, out, olen, label, llen, context, contextlen, context != NULL) != 1) {