Lines Matching refs:sp

37 test_int8(krb5_context context, krb5_storage *sp)
45 krb5_storage_truncate(sp, 0);
49 ret = krb5_store_int8(sp, val[i]);
52 krb5_storage_seek(sp, 0, SEEK_SET);
53 ret = krb5_ret_int8(sp, &v);
62 test_int16(krb5_context context, krb5_storage *sp)
70 krb5_storage_truncate(sp, 0);
74 ret = krb5_store_int16(sp, val[i]);
77 krb5_storage_seek(sp, 0, SEEK_SET);
78 ret = krb5_ret_int16(sp, &v);
87 test_int32(krb5_context context, krb5_storage *sp)
95 krb5_storage_truncate(sp, 0);
99 ret = krb5_store_int32(sp, val[i]);
102 krb5_storage_seek(sp, 0, SEEK_SET);
103 ret = krb5_ret_int32(sp, &v);
112 test_uint8(krb5_context context, krb5_storage *sp)
120 krb5_storage_truncate(sp, 0);
124 ret = krb5_store_uint8(sp, val[i]);
127 krb5_storage_seek(sp, 0, SEEK_SET);
128 ret = krb5_ret_uint8(sp, &v);
137 test_uint16(krb5_context context, krb5_storage *sp)
145 krb5_storage_truncate(sp, 0);
149 ret = krb5_store_uint16(sp, val[i]);
152 krb5_storage_seek(sp, 0, SEEK_SET);
153 ret = krb5_ret_uint16(sp, &v);
162 test_uint32(krb5_context context, krb5_storage *sp)
170 krb5_storage_truncate(sp, 0);
174 ret = krb5_store_uint32(sp, val[i]);
177 krb5_storage_seek(sp, 0, SEEK_SET);
178 ret = krb5_ret_uint32(sp, &v);
188 test_storage(krb5_context context, krb5_storage *sp)
190 test_int8(context, sp);
191 test_int16(context, sp);
192 test_int32(context, sp);
193 test_uint8(context, sp);
194 test_uint16(context, sp);
195 test_uint32(context, sp);
200 test_truncate(krb5_context context, krb5_storage *sp, int fd)
204 krb5_store_string(sp, "hej");
205 krb5_storage_truncate(sp, 2);
212 krb5_storage_truncate(sp, 1024);
221 check_too_large(krb5_context context, krb5_storage *sp)
229 krb5_storage_truncate(sp, 0);
230 krb5_store_uint32(sp, too_big_sizes[n]);
231 krb5_storage_seek(sp, 0, SEEK_SET);
232 ret = krb5_ret_data(sp, &data);
268 krb5_storage *sp;
295 sp = krb5_storage_emem();
296 if (sp == NULL)
299 test_storage(context, sp);
300 check_too_large(context, sp);
301 krb5_storage_free(sp);
308 sp = krb5_storage_from_fd(fd);
310 if (sp == NULL)
313 test_storage(context, sp);
314 krb5_storage_free(sp);
325 sp = krb5_storage_from_fd(fd);
326 if (sp == NULL)
329 test_truncate(context, sp, fd);
330 krb5_storage_free(sp);