Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 66) sorted by relevance

123

/NetX-Duo-v6.3.0/addons/pop3/
Dnxd_pop3_client.c692 CHAR *buffer; in _nx_pop3_client_mail_items_get() local
725 buffer = (CHAR *)(packet_ptr -> nx_packet_prepend_ptr); in _nx_pop3_client_mail_items_get()
727 …memcpy(buffer, NX_POP3_COMMAND_STAT, (sizeof(NX_POP3_COMMAND_STAT) - 1)); /* Use case of memcpy is… in _nx_pop3_client_mail_items_get()
730 buffer += (sizeof(NX_POP3_COMMAND_STAT) - 1); in _nx_pop3_client_mail_items_get()
732 …memcpy(buffer, NX_POP3_COMMAND_TERMINATION, (sizeof(NX_POP3_COMMAND_TERMINATION) - 1)); /* Use cas… in _nx_pop3_client_mail_items_get()
735 buffer += (sizeof(NX_POP3_COMMAND_TERMINATION) - 1); in _nx_pop3_client_mail_items_get()
777 buffer = (CHAR *)(recv_packet_ptr -> nx_packet_prepend_ptr); in _nx_pop3_client_mail_items_get()
780 …_nx_pop3_parse_response(buffer, 1, recv_packet_ptr -> nx_packet_length, (CHAR *)&argument, 10, NX_… in _nx_pop3_client_mail_items_get()
793 …_nx_pop3_parse_response(buffer, 2, recv_packet_ptr -> nx_packet_length, (CHAR *)&argument, 10, NX_… in _nx_pop3_client_mail_items_get()
806 …_nx_pop3_parse_response(buffer, 3, recv_packet_ptr -> nx_packet_length, (CHAR *)&argument, 10, NX_… in _nx_pop3_client_mail_items_get()
[all …]
/NetX-Duo-v6.3.0/nx_secure/src/
Dnx_secure_x509_certificate_revocation_list_parse.c29 static UINT _nx_secure_x509_crl_tbscert_list_parse(const UCHAR *buffer, ULONG length,
31 static UINT _nx_secure_x509_crl_signature_algorithm_parse(const UCHAR *buffer, ULONG length,
34 static UINT _nx_secure_x509_crl_signature_data_parse(const UCHAR *buffer, ULONG length,
36 static UINT _nx_secure_x509_crl_version_parse(const UCHAR *buffer, ULONG length, UINT *bytes_proces…
38 static UINT _nx_secure_x509_crl_issuer_parse(const UCHAR *buffer, ULONG length, UINT *bytes_process…
40 static UINT _nx_secure_x509_crl_update_times_parse(const UCHAR *buffer, ULONG length,
42 static UINT _nx_secure_x509_crl_revoked_certs_list_parse(const UCHAR *buffer, ULONG length,
45 static UINT _nx_secure_x509_crl_extensions_parse(const UCHAR *buffer, ULONG length,
102 UINT _nx_secure_x509_certificate_revocation_list_parse(const UCHAR *buffer, UINT length, in _nx_secure_x509_certificate_revocation_list_parse() argument
166 …status = _nx_secure_x509_asn1_tlv_block_parse(buffer, (ULONG *)&length, &tlv_type, &tlv_type_class… in _nx_secure_x509_certificate_revocation_list_parse()
[all …]
Dnx_secure_x509.c27 static UINT _nx_secure_x509_parse_cert_data(const UCHAR *buffer, ULONG length,
29 static UINT _nx_secure_x509_parse_version(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
31 static UINT _nx_secure_x509_parse_serial_num(const UCHAR *buffer, ULONG length,
33 static UINT _nx_secure_x509_parse_signature_algorithm(const UCHAR *buffer, ULONG length,
36 static UINT _nx_secure_x509_parse_issuer(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
38 static UINT _nx_secure_x509_parse_validity(const UCHAR *buffer, ULONG length,
40 static UINT _nx_secure_x509_parse_subject(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
42 static UINT _nx_secure_x509_parse_public_key(const UCHAR *buffer, ULONG length,
44 static UINT _nx_secure_x509_parse_unique_ids(const UCHAR *buffer, ULONG length,
46 static UINT _nx_secure_x509_parse_extensions(const UCHAR *buffer, ULONG length,
[all …]
Dnx_secure_x509_asn1_tlv_block_parse.c129 UINT _nx_secure_x509_asn1_tlv_block_parse(const UCHAR *buffer, ULONG *buffer_length, USHORT *tlv_ty… in _nx_secure_x509_asn1_tlv_block_parse() argument
139 current_tag = buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
189 *tlv_data = &buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
195 length = buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
227 length += buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
252 *tlv_data = &buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
Dnx_secure_x509_distinguished_name_parse.c27 static UINT _nx_secure_x509_extract_name_oid_data(const UCHAR *buffer, UINT oid, ULONG length,
82 UINT _nx_secure_x509_distinguished_name_parse(const UCHAR *buffer, UINT length, UINT *bytes_process… in _nx_secure_x509_distinguished_name_parse() argument
115 …status = _nx_secure_x509_asn1_tlv_block_parse(&buffer[current_index], (ULONG *)&length, &tlv_type,… in _nx_secure_x509_distinguished_name_parse()
231 static UINT _nx_secure_x509_extract_name_oid_data(const UCHAR *buffer, UINT oid, ULONG length, in _nx_secure_x509_extract_name_oid_data() argument
242 …status = _nx_secure_x509_asn1_tlv_block_parse(buffer, &length, &tlv_type, &tlv_type_class, &tlv_le… in _nx_secure_x509_extract_name_oid_data()
Dnx_secure_x509_expiration_check.c120 #define date_2_chars_to_int(buffer, index) (ULONG)(((buffer[index] - '0') * 10) + (buffer[index + 1… argument
Dnx_secure_x509_crl_revocation_check.c29 static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, UINT *bytes_processe…
277 static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, UINT *bytes_processe… in _nx_secure_x509_crl_parse_entry() argument
291 current_buffer = buffer; in _nx_secure_x509_crl_parse_entry()
Dnx_secure_x509_ec_private_key_parse.c81 UINT _nx_secure_x509_ec_private_key_parse(const UCHAR *buffer, UINT length, in _nx_secure_x509_ec_private_key_parse() argument
111 …status = _nx_secure_x509_asn1_tlv_block_parse(buffer, (ULONG *)&length, &tlv_type, &tlv_type_class… in _nx_secure_x509_ec_private_key_parse()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/serializer/
Dserializer.c159 asc_result_t serializer_buffer_get(serializer_t *serializer, uint8_t **buffer, size_t *size) in serializer_buffer_get() argument
161 …ffer_get, serializer=[%p], buffer=[%p], size=[%p]", (void*)serializer, (void*)buffer, (void*)size); in serializer_buffer_get()
163 if (serializer == NULL || buffer == NULL || size == NULL) { in serializer_buffer_get()
173 *buffer = flatcc_builder_get_direct_buffer(&serializer->builder, size); in serializer_buffer_get()
174 if (*buffer == NULL) { in serializer_buffer_get()
201 asc_result_t serializer_buffer_get_copy(serializer_t *serializer, uint8_t *buffer, size_t size) in serializer_buffer_get_copy() argument
203 …py, serializer=[%p], buffer=[%p], size=[%lu]", (void*)serializer, (void*)buffer, (long unsigned in… in serializer_buffer_get_copy()
205 if (serializer == NULL || buffer == NULL) { in serializer_buffer_get_copy()
215 if (flatcc_builder_copy_buffer(&serializer->builder, buffer, size) == NULL) { in serializer_buffer_get_copy()
/NetX-Duo-v6.3.0/addons/sntp/
Dnxd_sntp_client.c4036 …tp_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer) in _nxe_sntp_client_get_local_time() argument
4054 status = _nx_sntp_client_get_local_time(client_ptr, seconds, fraction, buffer); in _nxe_sntp_client_get_local_time()
4107 …p_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer) in _nx_sntp_client_get_local_time() argument
4112 …status = _nx_sntp_client_get_local_time_extended(client_ptr, seconds, fraction, buffer, NX_MAX_STR… in _nx_sntp_client_get_local_time()
4162 …tended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size) in _nxe_sntp_client_get_local_time_extended() argument
4180 …status = _nx_sntp_client_get_local_time_extended(client_ptr, seconds, fraction, buffer, buffer_siz… in _nxe_sntp_client_get_local_time_extended()
4239 …ended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size) in _nx_sntp_client_get_local_time_extended() argument
4249 if (buffer != NX_NULL) in _nx_sntp_client_get_local_time_extended()
4264 buffer[offset++] = 'T'; in _nx_sntp_client_get_local_time_extended()
4265 buffer[offset++] = 'i'; in _nx_sntp_client_get_local_time_extended()
[all …]
Dnxd_sntp_client.h676 …_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer);
677 …ended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size);
690 UINT nx_sntp_client_utility_display_date_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer, UINT len…
709 …_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer);
710 …_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer);
711 …ended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size)…
712 …ended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size);
737 UINT _nx_sntp_client_utility_display_date_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer, UINT le…
738 UINT _nxe_sntp_client_utility_display_date_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer, UINT l…
739 UINT _nxe_sntp_client_utility_display_NTP_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer);
/NetX-Duo-v6.3.0/addons/dhcp/
Dnxd_dhcp_server.c58 static UINT _nx_dhcp_process_option_data(NX_DHCP_CLIENT *dhcp_ptr, CHAR *buffer, UCHAR value…
60 …_add_requested_option(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, UCHAR *buffer, UINT option, UINT…
61 static UINT _nx_dhcp_set_server_options(NX_DHCP_SERVER *dhcp_ptr, CHAR *buffer, UINT buffer_…
62 …ptions(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr, UCHAR *buffer, UINT option_type,…
63 static UINT _nx_dhcp_parse_next_option(CHAR **buffer, UINT *digit, UINT length);
1798 UCHAR *buffer; in _nx_dhcp_respond_to_client_message() local
1822 buffer = packet_ptr -> nx_packet_prepend_ptr; in _nx_dhcp_respond_to_client_message()
1825 memset((void *) buffer, 0, NX_DHCP_OFFSET_END); in _nx_dhcp_respond_to_client_message()
1828 buffer[NX_DHCP_OFFSET_OP] = NX_DHCP_OP_REPLY; in _nx_dhcp_respond_to_client_message()
1829 buffer[NX_DHCP_OFFSET_HTYPE] = (UCHAR)dhcp_client_ptr -> nx_dhcp_client_hwtype; in _nx_dhcp_respond_to_client_message()
[all …]
Dnxd_dhcp_client.c5312 UCHAR *buffer; in _nx_dhcp_packet_process() local
5418 buffer = new_packet_ptr -> nx_packet_prepend_ptr; in _nx_dhcp_packet_process()
5421 …status = _nx_dhcp_get_option_value(buffer, NX_DHCP_OPTION_DHCP_TYPE, &dhcp_type, new_packet_ptr ->… in _nx_dhcp_packet_process()
5433 …if (_nx_dhcp_extract_information(dhcp_ptr, interface_record, buffer, new_packet_ptr -> nx_packet_l… in _nx_dhcp_packet_process()
5467 buffer = new_packet_ptr -> nx_packet_prepend_ptr; in _nx_dhcp_packet_process()
5471 …status = _nx_dhcp_get_option_value(buffer, NX_DHCP_OPTION_DHCP_TYPE, &dhcp_type, new_packet_ptr ->… in _nx_dhcp_packet_process()
5487 …if (_nx_dhcp_extract_information(dhcp_ptr, interface_record, buffer, new_packet_ptr -> nx_packet_l… in _nx_dhcp_packet_process()
5580 buffer = new_packet_ptr -> nx_packet_prepend_ptr; in _nx_dhcp_packet_process()
5583 …status = _nx_dhcp_get_option_value(buffer, NX_DHCP_OPTION_DHCP_TYPE, &dhcp_type, new_packet_ptr ->… in _nx_dhcp_packet_process()
5597 …if (_nx_dhcp_extract_information(dhcp_ptr, interface_record, buffer, new_packet_ptr -> nx_packet_l… in _nx_dhcp_packet_process()
[all …]
Dnxd_dhcpv6_client.c2953 UINT _nxe_dhcpv6_get_other_option_data(NX_DHCPV6 *dhcpv6_ptr, UINT option_code, UCHAR *buffer,UINT… in _nxe_dhcpv6_get_other_option_data() argument
2960 if (!dhcpv6_ptr || !buffer) in _nxe_dhcpv6_get_other_option_data()
2976 status = _nx_dhcpv6_get_other_option_data(dhcpv6_ptr, option_code, buffer, buffer_length); in _nxe_dhcpv6_get_other_option_data()
3031 UINT _nx_dhcpv6_get_other_option_data(NX_DHCPV6 *dhcpv6_ptr, UINT option_code, UCHAR *buffer, UINT… in _nx_dhcpv6_get_other_option_data() argument
3053 …memcpy(buffer, dhcpv6_ptr -> nx_dhcpv6_time_zone, NX_DHCPV6_TIME_ZONE_BUFFER_SIZE); /* Use case o… in _nx_dhcpv6_get_other_option_data()
3070 …memcpy(buffer, dhcpv6_ptr -> nx_dhcpv6_domain_name, NX_DHCPV6_DOMAIN_NAME_BUFFER_SIZE); /* Use cas… in _nx_dhcpv6_get_other_option_data()
4945 UINT _nx_dhcpv6_name_string_unencode(UCHAR *data, UINT start, UCHAR *buffer, UINT size) in _nx_dhcpv6_name_string_unencode() argument
4967 *buffer++ = *character++; in _nx_dhcpv6_name_string_unencode()
4973 *buffer++ = '.'; in _nx_dhcpv6_name_string_unencode()
4992 if (*(buffer - 1) == '.') in _nx_dhcpv6_name_string_unencode()
[all …]
/NetX-Duo-v6.3.0/crypto_libraries/src/
Dnx_crypto_sha5.c501 NX_CRYPTO_KEEP VOID _nx_crypto_sha512_process_buffer(NX_CRYPTO_SHA512 *context, UCHAR *buffer) in _nx_crypto_sha512_process_buffer() argument
517 w[t] = (((ULONG64)buffer[0]) << 56) | in _nx_crypto_sha512_process_buffer()
518 (((ULONG64)buffer[1]) << 48) | in _nx_crypto_sha512_process_buffer()
519 (((ULONG64)buffer[2]) << 40) | in _nx_crypto_sha512_process_buffer()
520 (((ULONG64)buffer[3]) << 32) | in _nx_crypto_sha512_process_buffer()
521 (((ULONG64)buffer[4]) << 24) | in _nx_crypto_sha512_process_buffer()
522 (((ULONG64)buffer[5]) << 16) | in _nx_crypto_sha512_process_buffer()
523 (((ULONG64)buffer[6]) << 8) | in _nx_crypto_sha512_process_buffer()
524 ((ULONG64)buffer[7]); in _nx_crypto_sha512_process_buffer()
525 buffer += 8; in _nx_crypto_sha512_process_buffer()
/NetX-Duo-v6.3.0/samples/
Ddemo_netxduo_dhcpv6_client.c189 UCHAR buffer[200]; in thread_client_entry() local
539 memset(buffer, 0, sizeof(buffer)); in thread_client_entry()
542 nx_dhcpv6_get_other_option_data(&dhcp_client, NX_DHCPV6_DOMAIN_NAME_OPTION, buffer, 200); in thread_client_entry()
545 memset(buffer, 0, sizeof(buffer)); in thread_client_entry()
548 …nx_dhcpv6_get_other_option_data(&dhcp_client, NX_DHCPV6_NEW_POSIX_TIMEZONE_OPTION, buffer, 200); /… in thread_client_entry()
Ddemo_bsd_udp.c138 CHAR buffer[64]; in thread_server_entry() local
172 … status = recvfrom(sock_udp_2,(VOID *)buffer, 64, 0,(struct sockaddr *) &fromAddr, &addrlen1); in thread_server_entry()
185 printf("Server received from Client: %s\n", buffer); in thread_server_entry()
188 …status = sendto(sock_udp_2, buffer, (INT)(status + 1), 0, (struct sockaddr *) &fromAddr, sizeof(fr… in thread_server_entry()
/NetX-Duo-v6.3.0/addons/smtp/
Dnxd_smtp_client.c56 static VOID _nx_smtp_find_crlf(UCHAR *buffer, UINT length, UCHAR **CRLF, UINT reverse);
91 static UINT _nx_smtp_parse_response(NX_SMTP_CLIENT *client_ptr, UCHAR *buffer, UINT arguement_index…
4254 UINT _nx_smtp_parse_response(NX_SMTP_CLIENT *client_ptr, UCHAR *buffer, UINT argument_index, in _nx_smtp_parse_response() argument
4268 if ((buffer == NX_NULL) || (buffer_length == 0) || (argument_index == 0)) in _nx_smtp_parse_response()
4289 ((*buffer == ' ') || (*buffer == '-')) in _nx_smtp_parse_response()
4297 else if ((*buffer >= 0x30) && (*buffer <= 0x39)) in _nx_smtp_parse_response()
4306 *work_ptr = *buffer; in _nx_smtp_parse_response()
4317 buffer++; in _nx_smtp_parse_response()
4335 if ((*buffer == 0x0D) && (*(buffer + 1) == 0x0A)) in _nx_smtp_parse_response()
4352 buffer++; in _nx_smtp_parse_response()
[all …]
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/utils/collection/
Dhashtable.c194 const char *buffer = key; in hashtable_hash_str_default() local
195 return hashtable_buffer2hash(buffer, str_len(buffer)); in hashtable_hash_str_default()
198 unsigned int hashtable_buffer2hash(const char *buffer, size_t len) in hashtable_buffer2hash() argument
203 hash = ((hash << 5) + hash) + (unsigned int)buffer[i]; in hashtable_buffer2hash()
/NetX-Duo-v6.3.0/addons/websocket/
Dnx_sha1.c408 VOID _nx_sha1_process_buffer(NX_SHA1 *context, UCHAR buffer[64]) in _nx_sha1_process_buffer()
426 …[t] = (((ULONG) buffer[t * 4]) << 24) | (((ULONG) buffer[(t * 4) + 1]) << 16) | (((ULONG) buffer[… in _nx_sha1_process_buffer()
/NetX-Duo-v6.3.0/addons/snmp/
Dnx_sha1.c408 VOID _nx_sha1_process_buffer(NX_SHA1 *context, UCHAR buffer[64]) in _nx_sha1_process_buffer()
426 …[t] = (((ULONG) buffer[t * 4]) << 24) | (((ULONG) buffer[(t * 4) + 1]) << 16) | (((ULONG) buffer[… in _nx_sha1_process_buffer()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/
Dserializer.h312 asc_result_t serializer_buffer_get(serializer_t *serializer, uint8_t **buffer, size_t *size);
341 asc_result_t serializer_buffer_get_copy(serializer_t *serializer, uint8_t *buffer, size_t size);
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/src/runtime/
Dbuilder.c837 frame(container.buffer.block_align) = B->block_align; in flatcc_builder_start_buffer()
839 frame(container.buffer.flags = B->buffer_flags); in flatcc_builder_start_buffer()
841 frame(container.buffer.mark) = B->buffer_mark; in flatcc_builder_start_buffer()
842 frame(container.buffer.nest_id) = B->nest_id; in flatcc_builder_start_buffer()
851 frame(container.buffer.identifier) = B->identifier; in flatcc_builder_start_buffer()
870 B->buffer_mark = frame(container.buffer.mark); in flatcc_builder_end_buffer()
871 B->nest_id = frame(container.buffer.nest_id); in flatcc_builder_end_buffer()
872 B->identifier = frame(container.buffer.identifier); in flatcc_builder_end_buffer()
873 B->buffer_flags = frame(container.buffer.flags); in flatcc_builder_end_buffer()
1955 void *flatcc_builder_copy_buffer(flatcc_builder_t *B, void *buffer, size_t size) in flatcc_builder_copy_buffer() argument
[all …]
/NetX-Duo-v6.3.0/addons/azure_iot/docs/
Dazure_rtos_iot_provisioning_client.md39 | metadata_memory [in] | A pointer to metadata memory buffer. |
40 | memory_size [in] | Size of metadata buffer |
47 …_BUFFER_SPACE Fail to initialize the Azure IoT Provisioning Client due to buffer size is too small.
279 <div style="text-align: right"> Get IoTHub device info into user supplied buffer </div>
290 <p>This routine gets IoTHub device info into user supplied buffer </p>
297 …Pointer to UINT that contains size of buffer supplied, once successfully return it contains bytes …
299 …Pointer to UINT that contains size of buffer supplied, once successfully return it contains bytes …
305 * NX_AZURE_IOT_INSUFFICIENT_BUFFER_SPACE Fail to retrieve device info due to buffer size is too sma…
/NetX-Duo-v6.3.0/common/inc/
Dnx_md5.h112 VOID _nx_md5_process_buffer(NX_MD5 *context, UCHAR buffer[64]);

123