Lines Matching defs:buf
391 uint8_t *buf;
414 buf = talloc_size(ts, needed_size);
415 assert_non_null(buf);
417 ret = sss_auth_pack_2fa_blob("abc", 0, "defg", 0, buf, needed_size,
422 assert_memory_equal(buf, "\4\0\0\0\5\0\0\0abc\0defg\0", needed_size);
424 assert_memory_equal(buf, "\0\0\0\4\0\0\0\5abc\0defg\0", needed_size);
427 ret = sss_auth_unpack_2fa_blob(ts, buf, needed_size, &fa1, &fa1_len, &fa2,
435 talloc_free(buf);
445 uint8_t *buf;
461 buf = talloc_size(ts, needed_size);
462 assert_non_null(buf);
465 buf, needed_size, &needed_size);
469 assert_memory_equal(buf, "\4\0\0\0\5\0\0\0\6\0\0\0\7\0\0\0abc\0defg\0hijkl\0mnopqr\0",
472 assert_memory_equal(buf, "\0\0\0\4\0\0\0\5\0\0\0\6\0\0\0\7abc\0defg\0hijkl\0mnopqr\0",
476 ret = sss_authtok_set(ts->authtoken, SSS_AUTHTOK_TYPE_SC_PIN, buf,
516 talloc_free(buf);