Lines Matching refs:length
58 int length, new_length; in gssint_get_der_length() local
92 for (length = 0; octets; octets--) { in gssint_get_der_length()
93 new_length = (length << 8) + *p++; in gssint_get_der_length()
94 if (new_length < length) /* overflow */ in gssint_get_der_length()
96 length = new_length; in gssint_get_der_length()
101 return (length); in gssint_get_der_length()
130 gssint_put_der_length(unsigned int length, unsigned char **buf, unsigned int max_len) in gssint_put_der_length() argument
143 if (length < 128) { in gssint_put_der_length()
144 *s++ = length; in gssint_put_der_length()
166 v = (length >> i) & 0xff; in gssint_put_der_length()
197 int length; local
234 length = *buffer_ptr++;
237 if (length == 0)
240 if (length & 0x80) {
241 if ((length & 0x7f) > 4)
243 buffer_ptr += length & 0x7f;
249 OID->length = (OM_uint32) *(buffer_ptr++);
276 if (token->length >= sizeof(NTLMSSP_SIGNATURE) &&
280 } else if (token->length != 0 &&
284 } else if (token->length == 0) {
404 mechOidDERLen = gssint_der_length_size(mech_type->length);
405 name_buf->length = tokIdLen + mechOidLenLen +
407 mech_type->length +
408 nameLenLen + dispName.length;
409 if ((name_buf->value = (void*)malloc(name_buf->length)) ==
411 name_buf->length = 0;
418 (void) memset(name_buf->value, 0, name_buf->length);
423 mechOidLen = mechOidDERLen + mechOidTagLen + mech_type->length;
432 if (gssint_put_der_length(mech_type->length, &buf,
433 (name_buf->length - tokIdLen -2)) != 0) {
434 name_buf->length = 0;
440 (void) memcpy(buf, mech_type->elements, mech_type->length);
441 buf += mech_type->length;
444 store_32_be(dispName.length, buf);
448 (void) memcpy(buf, dispName.value, dispName.length);
584 union_name->external_name->length = 0;
693 len = srcBuf->length + 1;
695 len = srcBuf->length;
703 (void) memcpy(aBuf->value, srcBuf->value, srcBuf->length);
704 aBuf->length = srcBuf->length;
709 ((char *)aBuf->value)[aBuf->length] = '\0';