/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_token.c | 147 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 D | ucode_utils_intel.c | 53 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 D | microcode_intel.c | 82 int total_size, body_size; in ucode_file_reset_intel() local 88 body_size = UCODE_BODY_SIZE_INTEL(ucodefp->uf_header->uh_body_size); in ucode_file_reset_intel() 91 ucode_free(ucodefp->uf_body, body_size); in ucode_file_reset_intel() 96 int size = total_size - body_size - UCODE_HEADER_SIZE_INTEL; in ucode_file_reset_intel() 221 int total_size, body_size, ext_size; in ucode_locate_intel() local 229 body_size = UCODE_BODY_SIZE_INTEL(uhp->uh_body_size); in ucode_locate_intel() 230 ucodefp->uf_body = ucode_zalloc(body_size); in ucode_locate_intel() 237 body_size, offset) != body_size) in ucode_locate_intel() 246 if (ucode_checksum_intel(sum, body_size, ucodefp->uf_body)) { in ucode_locate_intel() 254 offset = body_size + header_size; in ucode_locate_intel() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/dummy/ |
H A D | dmech.c | 71 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; 489 body_size += 4 + (int)mech->length; /* NEED overflow check */ 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); [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dummy/mech/ |
H A D | dmech.c | 105 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; 1332 body_size += 4 + (int)mech->length; /* NEED overflow check */ 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); [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | gssapiP_generic.h | 194 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 D | ucodeadm.c | 388 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 D | spnego_mech.c | 3721 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()
|