Home
last modified time | relevance | path

Searched refs:body_size (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_token.c147 unsigned int g_token_size(mech, body_size) in g_token_size() argument
149 unsigned int body_size;
152 body_size += 4 + (int) mech->length; /* NEED overflow check */
153 return(1 + der_length_size((int) body_size) + body_size);
159 void g_make_token_header(mech, body_size, buf, tok_type) in g_make_token_header() argument
161 unsigned int body_size;
167 (tok_type == -1) ? 2 : (int) (4 + mech->length + body_size));
186 gss_int32 g_verify_token_header(mech, body_size, buf_in, tok_type, toksize_in, in g_verify_token_header() argument
189 unsigned int *body_size;
242 *body_size = toksize;
/illumos-gate/usr/src/common/ucode/
H A Ducode_utils_intel.c53 uint32_t header_size, body_size, total_size; in ucode_header_validate_intel() local
66 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_header_validate_intel()
74 if ((body_size % sizeof (int)) || in ucode_header_validate_intel()
75 (total_size < (header_size + body_size)) || in ucode_header_validate_intel()
94 if (total_size > (header_size + body_size)) { in ucode_header_validate_intel()
95 if ((total_size - body_size - header_size - in ucode_header_validate_intel()
155 uint32_t total_size, body_size, ext_size; in ucode_validate_intel() local
170 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_validate_intel()
171 ext_size = total_size - (header_size + body_size); in ucode_validate_intel()
178 &curbuf[header_size + body_size]; in ucode_validate_intel()
/illumos-gate/usr/src/uts/intel/os/
H A Dmicrocode_intel.c81 int total_size, body_size; in ucode_file_reset_intel() local
90 ucode_free(id, ucodefp->uf_body, body_size); in ucode_file_reset_intel()
192 int total_size, body_size, ext_size; in ucode_locate_intel() local
200 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_locate_intel()
201 ucodefp->uf_body = ucode_zalloc(cp->cpu_id, body_size); in ucode_locate_intel()
208 body_size, offset) != body_size) in ucode_locate_intel()
225 offset = body_size + header_size; in ucode_locate_intel()
334 int total_size, body_size, ext_size; in ucode_extract_intel() local
341 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_extract_intel()
342 ext_size = total_size - (header_size + body_size); in ucode_extract_intel()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/dummy/
H A Ddmech.c71 static int g_token_size(gss_OID mech, unsigned int body_size);
72 static void g_make_token_header(gss_OID mech, int body_size,
74 static int g_verify_token_header(gss_OID mech, int *body_size,
484 g_token_size(mech, body_size) in g_token_size() argument
486 unsigned int body_size;
490 return (1 + der_length_size(body_size) + body_size);
494 g_make_token_header(mech, body_size, buf, tok_type) in g_make_token_header() argument
496 int body_size;
501 der_write_length(buf, 4 + mech->length + body_size);
512 int *body_size;
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dummy/mech/
H A Ddmech.c105 static int g_token_size(gss_OID mech, unsigned int body_size);
106 static void g_make_token_header(gss_OID mech, int body_size,
108 static int g_verify_token_header(gss_OID mech, int *body_size,
1327 g_token_size(mech, body_size) in g_token_size() argument
1329 unsigned int body_size;
1333 return (1 + der_length_size(body_size) + body_size);
1337 g_make_token_header(mech, body_size, buf, tok_type) in g_make_token_header() argument
1339 int body_size;
1344 der_write_length(buf, 4 + mech->length + body_size);
1355 int *body_size;
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A DgssapiP_generic.h194 unsigned int g_token_size (const gss_OID_desc * mech, unsigned int body_size);
196 void g_make_token_header (const gss_OID_desc * mech, unsigned int body_size,
200 unsigned int *body_size,
/illumos-gate/usr/src/cmd/ucodeadm/
H A Ducodeadm.c388 uint32_t total_size, body_size, offset; in ucode_gen_files_intel() local
399 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_gen_files_intel()
458 offset = UCODE_HEADER_SIZE_INTEL + body_size; in ucode_gen_files_intel()
548 uint32_t total_size, body_size, offset; in ucode_list_intel() local
555 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_list_intel()
569 offset = UCODE_HEADER_SIZE_INTEL + body_size; in ucode_list_intel()
/illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/
H A Dspnego_mech.c3721 g_token_size(gss_OID_const mech, unsigned int body_size) in g_token_size() argument
3739 hdrsize += 1 + gssint_der_length_size(body_size + hdrsize); in g_token_size()
3741 return (hdrsize + body_size); in g_token_size()
3753 unsigned int body_size, in g_make_token_header() argument
3764 if ((ret = gssint_put_der_length(hdrsize + body_size, buf, totallen))) in g_make_token_header()
3872 unsigned int *body_size, in g_verify_token_header() argument
3929 *body_size = toksize; in g_verify_token_header()