Lines Matching refs:ret

47 		ret = err;						\
52 if (ret != 0) \
64 asn1_error_code ret = 0; in asn1_encode_key() local
71 ret = asn1_encode_octetstring (buf, in asn1_encode_key()
76 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); checkerr; in asn1_encode_key()
79 ret = asn1_encode_integer (buf, key_data.key_data_type[0], &length); in asn1_encode_key()
82 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checkerr; in asn1_encode_key()
85 ret = asn1_make_sequence(buf, key_len, &length); checkerr; in asn1_encode_key()
87 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, key_len, &length); checkerr; in asn1_encode_key()
97 ret = asn1_encode_octetstring (buf, in asn1_encode_key()
102 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); in asn1_encode_key()
107 ret = asn1_encode_integer (buf, key_data.key_data_type[1], &length); in asn1_encode_key()
110 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checkerr; in asn1_encode_key()
113 ret = asn1_make_sequence(buf, salt_len, &length); checkerr; in asn1_encode_key()
115 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, salt_len, &length); checkerr; in asn1_encode_key()
121 ret = asn1_make_sequence(buf, sum, &length); checkerr; in asn1_encode_key()
127 return ret; in asn1_encode_key()
138 asn1_error_code ret = 0; in asn1_encode_sequence_of_keys() local
148 ret = asn1buf_create(&buf); in asn1_encode_sequence_of_keys()
157 ret = asn1_encode_key (buf, key_data[i], &length); checkerr; in asn1_encode_sequence_of_keys()
160 ret = asn1_make_sequence(buf, seq_len, &length); checkerr; in asn1_encode_sequence_of_keys()
162 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 4, seq_len, &length); checkerr; in asn1_encode_sequence_of_keys()
172 ret = asn1_encode_unsigned_integer (buf, tmp_ul, &length); checkerr; in asn1_encode_sequence_of_keys()
174 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 3, length, &length); checkerr; in asn1_encode_sequence_of_keys()
181 ret = asn1_encode_unsigned_integer (buf, tmp_ul, &length); in asn1_encode_sequence_of_keys()
184 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 2, length, &length); checkerr; in asn1_encode_sequence_of_keys()
188 ret = asn1_encode_unsigned_integer (buf, 1, &length); checkerr; in asn1_encode_sequence_of_keys()
190 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); checkerr; in asn1_encode_sequence_of_keys()
194 ret = asn1_encode_unsigned_integer (buf, 1, &length); checkerr; in asn1_encode_sequence_of_keys()
196 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checkerr; in asn1_encode_sequence_of_keys()
199 ret = asn1_make_sequence(buf, sum, &length); checkerr; in asn1_encode_sequence_of_keys()
203 ret = asn12krb5_buf (buf, code); checkerr; in asn1_encode_sequence_of_keys()
208 if (ret != 0 && *code != NULL) { in asn1_encode_sequence_of_keys()
214 return ret; in asn1_encode_sequence_of_keys()
231 asn1_error_code ret = 0; in decode_tagged_integer() local
236 ret = asn1buf_imbed(&tmp, buf, 0, 1); checkerr; in decode_tagged_integer()
237 ret = asn1_get_tag_2(&tmp, &t); checkerr; in decode_tagged_integer()
242 ret = asn1buf_imbed(&subbuf, &tmp, t.length, 0); checkerr; in decode_tagged_integer()
243 ret = asn1_decode_integer(&subbuf, val); checkerr; in decode_tagged_integer()
249 return ret; in decode_tagged_integer()
257 asn1_error_code ret = 0;
262 ret = asn1buf_imbed(&tmp, buf, 0, 1); checkerr;
263 ret = asn1_get_tag_2(&tmp, &t); checkerr;
268 ret = asn1buf_imbed(&subbuf, &tmp, t.length, 0); checkerr;
269 ret = asn1_decode_unsigned_integer(&subbuf, val); checkerr;
275 return ret;
284 asn1_error_code ret = 0; in decode_tagged_octetstring() local
291 ret = asn1buf_imbed(&tmp, buf, 0, 1); checkerr; in decode_tagged_octetstring()
292 ret = asn1_get_tag_2(&tmp, &t); checkerr; in decode_tagged_octetstring()
297 ret = asn1buf_imbed(&subbuf, &tmp, t.length, 0); checkerr; in decode_tagged_octetstring()
298 ret = asn1_decode_octetstring (&subbuf, len, val); checkerr; in decode_tagged_octetstring()
304 if (ret != 0 && *val != NULL) in decode_tagged_octetstring()
306 return ret; in decode_tagged_octetstring()
313 asn1_error_code ret; in asn1_decode_key() local
320 ret = asn1_get_sequence(buf, &length, &seqindef); checkerr; in asn1_decode_key()
322 ret = asn1buf_imbed(&subbuf, buf, length, seqindef); checkerr; in asn1_decode_key()
337 ret = decode_tagged_integer (&slt, 0, (long *) &keytype); in asn1_decode_key()
342 ret = decode_tagged_octetstring (&slt, 1, &keylen, in asn1_decode_key()
348 ret = asn1_get_tag_2(&subbuf, &t); checkerr; in asn1_decode_key()
362 ret = asn1_get_sequence(&subbuf, &length, &seqindef); checkerr; in asn1_decode_key()
364 ret = asn1buf_imbed(&kbuf, &subbuf, length, seqindef); checkerr; in asn1_decode_key()
366 ret = decode_tagged_integer (&kbuf, 0, &lval); in asn1_decode_key()
370 ret = decode_tagged_octetstring (&kbuf, 1, &ival, in asn1_decode_key()
380 if (ret != 0) { in asn1_decode_key()
390 return ret; in asn1_decode_key()
399 asn1_error_code ret; in asn1_decode_sequence_of_keys() local
410 ret = asn1buf_wrap_data(&buf, in); checkerr; in asn1_decode_sequence_of_keys()
412 ret = asn1_get_sequence(&buf, &length, &seqindef); checkerr; in asn1_decode_sequence_of_keys()
413 ret = asn1buf_imbed(&subbuf, &buf, length, seqindef); checkerr; in asn1_decode_sequence_of_keys()
416 ret = decode_tagged_integer (&subbuf, 0, &lval); checkerr; in asn1_decode_sequence_of_keys()
420 ret = decode_tagged_integer (&subbuf, 1, &lval); checkerr; in asn1_decode_sequence_of_keys()
427 ret = decode_tagged_integer (&subbuf, 2, &lval); checkerr; in asn1_decode_sequence_of_keys()
431 ret = decode_tagged_integer (&subbuf, 3, &lval); checkerr; in asn1_decode_sequence_of_keys()
434 ret = asn1_get_tag_2(&subbuf, &t); checkerr; in asn1_decode_sequence_of_keys()
442 ret = asn1_get_sequence(&subbuf, &length, &seqindef); checkerr; in asn1_decode_sequence_of_keys()
444 ret = asn1buf_imbed(&keyseq, &subbuf, length, seqindef); checkerr; in asn1_decode_sequence_of_keys()
452 ret = asn1_decode_key(&keyseq, &(*out)[i - 1]); checkerr; in asn1_decode_sequence_of_keys()
466 if (ret != 0) { in asn1_decode_sequence_of_keys()
478 return ret; in asn1_decode_sequence_of_keys()