Lines Matching refs:scratch

205 			ctx->scratch->int1 = RowStatus_createAndWait;  in op_usm_users()
209 ctx->scratch->int1 = uuser->suser.auth_proto; in op_usm_users()
232 ctx->scratch->ptr1 = malloc(SNMP_AUTH_KEY_SIZ); in op_usm_users()
233 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
235 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users()
242 ctx->scratch->int1 = uuser->suser.priv_proto; in op_usm_users()
265 ctx->scratch->ptr1 = malloc(SNMP_PRIV_KEY_SIZ); in op_usm_users()
266 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
268 memcpy(ctx->scratch->ptr1, uuser->suser.priv_key, in op_usm_users()
278 ctx->scratch->ptr2 = in op_usm_users()
280 if (ctx->scratch->ptr2 == NULL) in op_usm_users()
282 memcpy(ctx->scratch->ptr2, uuser->user_public, in op_usm_users()
284 ctx->scratch->int2 = uuser->user_public_len; in op_usm_users()
330 free(ctx->scratch->ptr1); in op_usm_users()
333 if (ctx->scratch->ptr2 != NULL) in op_usm_users()
334 free(ctx->scratch->ptr2); in op_usm_users()
353 uuser->suser.auth_proto = ctx->scratch->int1; in op_usm_users()
357 memcpy(uuser->suser.auth_key, ctx->scratch->ptr1, in op_usm_users()
359 free(ctx->scratch->ptr1); in op_usm_users()
362 uuser->suser.priv_proto = ctx->scratch->int1; in op_usm_users()
366 memcpy(uuser->suser.priv_key, ctx->scratch->ptr1, in op_usm_users()
368 free(ctx->scratch->ptr1); in op_usm_users()
371 if (ctx->scratch->ptr2 != NULL) { in op_usm_users()
372 memcpy(uuser->user_public, ctx->scratch->ptr2, in op_usm_users()
373 ctx->scratch->int2); in op_usm_users()
374 uuser->user_public_len = ctx->scratch->int2; in op_usm_users()
375 free(ctx->scratch->ptr2); in op_usm_users()
384 if (ctx->scratch->int1 == RowStatus_createAndWait) in op_usm_users()