/reactos/dll/3rdparty/mbedtls/ |
H A D | error.c | 241 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument 246 if( buflen == 0 ) in mbedtls_strerror() 249 memset( buf, 0x00, buflen ); in mbedtls_strerror() 620 if( buflen - len < 5 ) in mbedtls_strerror() 623 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror() 626 buflen -= len + 3; in mbedtls_strerror() 652 mbedtls_snprintf( buf, buflen, "ARIA - Bad input data" ); in mbedtls_strerror() 849 mbedtls_snprintf( buf, buflen, "NET - Input invalid" ); in mbedtls_strerror() 854 mbedtls_snprintf( buf, buflen, "OID - OID is not found" ); in mbedtls_strerror() 934 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument [all …]
|
H A D | x509_csr.c | 116 const unsigned char *buf, size_t buflen ) in mbedtls_x509_csr_parse_der() argument 128 if( csr == NULL || buf == NULL || buflen == 0 ) in mbedtls_x509_csr_parse_der() 136 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der() 141 memcpy( p, buf, buflen ); in mbedtls_x509_csr_parse_der() 287 int mbedtls_x509_csr_parse( mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen ) in mbedtls_x509_csr_parse() argument 298 if( csr == NULL || buf == NULL || buflen == 0 ) in mbedtls_x509_csr_parse() 303 if( buf[buflen - 1] == '\0' ) in mbedtls_x509_csr_parse() 323 ret = mbedtls_x509_csr_parse_der( csr, pem.buf, pem.buflen ); in mbedtls_x509_csr_parse() 331 return( mbedtls_x509_csr_parse_der( csr, buf, buflen ) ); in mbedtls_x509_csr_parse()
|
H A D | x509_crl.c | 326 const unsigned char *buf, size_t buflen ) in mbedtls_x509_crl_parse_der() argument 367 if( buflen == 0 ) in mbedtls_x509_crl_parse_der() 370 p = mbedtls_calloc( 1, buflen ); in mbedtls_x509_crl_parse_der() 374 memcpy( p, buf, buflen ); in mbedtls_x509_crl_parse_der() 377 crl->raw.len = buflen; in mbedtls_x509_crl_parse_der() 379 end = p + buflen; in mbedtls_x509_crl_parse_der() 581 if( buflen == 0 || buf[buflen - 1] != '\0' ) in mbedtls_x509_crl_parse() 596 buflen -= use_len; in mbedtls_x509_crl_parse() 600 pem.buf, pem.buflen ) ) != 0 ) in mbedtls_x509_crl_parse() 616 while( is_pem && buflen > 1 ); in mbedtls_x509_crl_parse() [all …]
|
H A D | pem.c | 169 unsigned char *buf, size_t buflen, in pem_des_decrypt() argument 183 ret = mbedtls_des_crypt_cbc( &des_ctx, MBEDTLS_DES_DECRYPT, buflen, in pem_des_decrypt() 197 unsigned char *buf, size_t buflen, in pem_des3_decrypt() argument 211 ret = mbedtls_des3_crypt_cbc( &des3_ctx, MBEDTLS_DES_DECRYPT, buflen, in pem_des3_decrypt() 227 unsigned char *buf, size_t buflen, in pem_aes_decrypt() argument 241 ret = mbedtls_aes_crypt_cbc( &aes_ctx, MBEDTLS_AES_DECRYPT, buflen, in pem_aes_decrypt() 444 ctx->buflen = len; in mbedtls_pem_read_buffer() 453 mbedtls_platform_zeroize( ctx->buf, ctx->buflen ); in mbedtls_pem_free()
|
/reactos/dll/win32/winhttp/ |
H A D | session.c | 112 *buflen = sizeof(DWORD); in session_query_option() 117 *buflen = sizeof(DWORD); in session_query_option() 122 *buflen = sizeof(DWORD); in session_query_option() 127 *buflen = sizeof(DWORD); in session_query_option() 132 *buflen = sizeof(DWORD); in session_query_option() 137 *buflen = sizeof(DWORD); in session_query_option() 354 *buflen = sizeof(DWORD); in connect_query_option() 788 *buflen = sizeof(*ci); in request_query_option() 882 ret[buflen] = 0; in buffer_to_str() 1216 if (!buflen) in query_option() [all …]
|
/reactos/win32ss/user/user32/misc/ |
H A D | resources.c | 22 LPWSTR buffer, INT buflen ) in LoadStringW() argument 31 instance, resource_id, buffer, buflen); in LoadStringW() 52 if(buflen == 0) in LoadStringW() 58 i = min(buflen - 1, *p); in LoadStringW() 63 if (buflen > 1) { in LoadStringW() 77 INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen ) in LoadStringA() argument 84 instance, resource_id, buffer, buflen); in LoadStringA() 86 if (!buflen) return -1; in LoadStringA() 98 if (buflen != 1) in LoadStringA() 99 … RtlUnicodeToMultiByteN( buffer, buflen - 1, &retval, (PWSTR)(p + 1), *p * sizeof(WCHAR) ); in LoadStringA()
|
/reactos/drivers/filesystems/btrfs/ |
H A D | reparse.c | 36 TRACE("(%p, %p, %lx, %p)\n", FileObject, buffer, buflen, retlen); in get_reparse_point() 48 if (buflen < reqlen) { in get_reparse_point() 99 if (buflen >= offsetof(REPARSE_DATA_BUFFER, Reserved)) in get_reparse_point() 105 if (buflen < reqlen) { in get_reparse_point() 159 if (buflen > 0) { in get_reparse_point() 160 *retlen = min(buflen, fcb->reparse_xattr.Length); in get_reparse_point() 192 if (buflen < minlen) { in set_symlink() 325 if (buflen < sizeof(ULONG)) { in set_reparse_point2() 330 Status = fFsRtlValidateReparsePointBuffer(buflen, rdb); in set_reparse_point2() 357 buf.Length = buf.MaximumLength = (uint16_t)buflen; in set_reparse_point2() [all …]
|
H A D | blake2b-ref.c | 190 size_t left = S->buflen; in blake2b_update() 194 S->buflen = 0; in blake2b_update() 206 memcpy( S->buf + S->buflen, in, inlen ); in blake2b_update() 207 S->buflen += inlen; in blake2b_update() 223 blake2b_increment_counter( S, S->buflen ); in blake2b_final() 225 memset( S->buf + S->buflen, 0, BLAKE2B_BLOCKBYTES - S->buflen ); /* Padding */ in blake2b_final()
|
H A D | security.c | 418 ULONG buflen; in get_top_level_sd() local 471 buflen = 0; in get_top_level_sd() 474 Status = RtlAbsoluteToSelfRelativeSD(&sd, NULL, &buflen); in get_top_level_sd() 480 if (buflen == 0 || Status == STATUS_SUCCESS) { in get_top_level_sd() 515 ULONG buflen; in fcb_get_sd() local 591 buflen = 0; in fcb_get_sd() 593 Status = RtlAbsoluteToSelfRelativeSD(abssd, NULL, &buflen); in fcb_get_sd() 602 if (buflen == 0) { in fcb_get_sd() 669 ULONG buflen; in _Function_class_() local 727 buflen = IrpSp->Parameters.QuerySecurity.Length; in _Function_class_() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/core/ipv6/ |
H A D | ip6_addr.c | 234 ip6addr_ntoa_r(const ip6_addr_t *addr, char *buf, int buflen) in ip6addr_ntoa_r() argument 247 int buflen_ip4 = buflen - sizeof(IP4MAPPED_HEADER) + 1; in ip6addr_ntoa_r() 248 if (buflen < (int)sizeof(IP4MAPPED_HEADER)) { in ip6addr_ntoa_r() 276 if (i >= buflen) { in ip6addr_ntoa_r() 292 if (i >= buflen) { in ip6addr_ntoa_r() 308 if (i >= buflen) { in ip6addr_ntoa_r() 318 if (i >= buflen) { in ip6addr_ntoa_r() 328 if (i >= buflen) { in ip6addr_ntoa_r() 339 if (i >= buflen) { in ip6addr_ntoa_r() 345 if (i >= buflen) { in ip6addr_ntoa_r()
|
/reactos/dll/directx/wine/dsound/ |
H A D | mixer.c | 135 if (pos >= dsb->buflen) in DSOUND_bufpos_to_secpos() 137 pos = dsb->buflen - iAdv; in DSOUND_bufpos_to_secpos() 232 dsb, dsb->buflen, playpos, len); in DSOUND_CheckEvent() 252 if ((playpos + len) >= dsb->buflen) { in DSOUND_CheckEvent() 311 assert(ptr1 < buflen); in DSOUND_BufPtrDiff() 312 assert(ptr2 < buflen); in DSOUND_BufPtrDiff() 316 return buflen + ptr1 - ptr2; in DSOUND_BufPtrDiff() 344 assert(writepos + len <= dsb->buflen); in DSOUND_MixToTemporary() 391 if (writepos >= dsb->buflen) in DSOUND_MixToTemporary() 887 if (frag + writepos > device->buflen) in DSOUND_PerformMix() [all …]
|
H A D | primary.c | 138 DWORD buflen; in DSOUND_PrimaryOpen() local 144 if (!device->buflen) in DSOUND_PrimaryOpen() 145 device->buflen = ds_hel_buflen; in DSOUND_PrimaryOpen() 146 buflen = device->buflen; in DSOUND_PrimaryOpen() 147 buflen -= buflen % device->pwfx->nBlockAlign; in DSOUND_PrimaryOpen() 148 device->buflen = buflen; in DSOUND_PrimaryOpen() 174 device->buflen = buflen; in DSOUND_PrimaryOpen() 309 device->buflen = ds_hel_buflen; in DSOUND_PrimaryCreate() 802 while (*writepos >= device->buflen) *writepos -= device->buflen; in PrimaryBufferImpl_GetCurrentPosition() 908 writebytes = device->buflen; in PrimaryBufferImpl_Lock() [all …]
|
H A D | capture.c | 488 if ( (dwReadCusor + dwReadBytes) > This->device->buflen) { in IDirectSoundCaptureBufferImpl_Lock() 489 *lpdwAudioBytes1 = This->device->buflen - dwReadCusor; in IDirectSoundCaptureBufferImpl_Lock() 553 device->nrofpwaves = device->buflen / blocksize + !!(device->buflen % blocksize); in IDirectSoundCaptureBufferImpl_Start() 871 DWORD buflen; in IDirectSoundCaptureBufferImpl_Create() local 901 buflen = lpcDSCBufferDesc->dwBufferBytes; in IDirectSoundCaptureBufferImpl_Create() 906 newbuf = HeapAlloc(GetProcessHeap(),0,buflen); in IDirectSoundCaptureBufferImpl_Create() 914 device->buflen = buflen; in IDirectSoundCaptureBufferImpl_Create() 918 device->buflen = lpcDSCBufferDesc->dwBufferBytes; in IDirectSoundCaptureBufferImpl_Create() 946 buflen = lpcDSCBufferDesc->dwBufferBytes; in IDirectSoundCaptureBufferImpl_Create() 951 newbuf = HeapAlloc(GetProcessHeap(),0,buflen); in IDirectSoundCaptureBufferImpl_Create() [all …]
|
H A D | buffer.c | 417 if (pos >= This->buflen){ in IDirectSoundBufferImpl_GetCurrentPosition() 419 pos %= This->buflen; in IDirectSoundBufferImpl_GetCurrentPosition() 430 *writepos %= This->buflen; in IDirectSoundBufferImpl_GetCurrentPosition() 524 writebytes = This->buflen; in IDirectSoundBufferImpl_Lock() 526 if (writecursor >= This->buflen) { in IDirectSoundBufferImpl_Lock() 528 writecursor, This->buflen); in IDirectSoundBufferImpl_Lock() 532 if (writebytes > This->buflen) { in IDirectSoundBufferImpl_Lock() 534 writebytes, This->buflen); in IDirectSoundBufferImpl_Lock() 602 newpos %= This->buflen; in IDirectSoundBufferImpl_SetCurrentPosition() 826 caps->dwBufferBytes = This->buflen; in IDirectSoundBufferImpl_GetCaps() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/ |
H A D | utils.c | 133 #define OUTCHAR(c) (buflen > 0? (--buflen, *buf++ = (c)): 0) 154 --buflen; in ppp_vslprintf() 160 if (len > buflen) in ppp_vslprintf() 161 len = buflen; in ppp_vslprintf() 164 buflen -= len; in ppp_vslprintf() 356 --buflen; in ppp_vslprintf() 387 width = buflen; in ppp_vslprintf() 389 buflen -= n; in ppp_vslprintf() 394 if (len > buflen) in ppp_vslprintf() 395 len = buflen; in ppp_vslprintf() [all …]
|
/reactos/dll/win32/sxs/ |
H A D | name.c | 120 LPDWORD buflen ) in name_GetProperty() argument 136 LPDWORD buflen, in name_GetDisplayName() argument 146 if (!buflen || flags) return E_INVALIDARG; in name_GetDisplayName() 153 if (len > *buflen) in name_GetDisplayName() 155 *buflen = len; in name_GetDisplayName() 205 LPDWORD buflen, in name_GetName() argument 211 TRACE("%p, %p, %p\n", iface, buflen, buffer); in name_GetName() 213 if (!buflen || !buffer) return E_INVALIDARG; in name_GetName() 217 if (len > *buflen) in name_GetName() 219 *buflen = len; in name_GetName() [all …]
|
/reactos/dll/win32/shell32/wine/ |
H A D | classes.c | 409 DWORD buflen = len; in HCR_GetClassNameW() local 420 DWORD dwLen = buflen * sizeof(WCHAR); in HCR_GetClassNameW() 445 if (LoadStringW(shell32_hInstance, IDS_DESKTOP, szDest, buflen)) in HCR_GetClassNameW() 450 if(LoadStringW(shell32_hInstance, IDS_MYCOMPUTER, szDest, buflen)) in HCR_GetClassNameW() 456 if(LoadStringW(shell32_hInstance, IDS_PERSONAL, szDest, buflen)) in HCR_GetClassNameW() 466 if(LoadStringW(shell32_hInstance, IDS_CONTROLPANEL, szDest, buflen)) in HCR_GetClassNameW() 483 DWORD buflen = len; in HCR_GetClassNameA() local 494 DWORD dwLen = buflen * sizeof(CHAR); in HCR_GetClassNameA() 519 if (LoadStringA(shell32_hInstance, IDS_DESKTOP, szDest, buflen)) in HCR_GetClassNameA() 524 if(LoadStringA(shell32_hInstance, IDS_MYCOMPUTER, szDest, buflen)) in HCR_GetClassNameA() [all …]
|
/reactos/sdk/include/reactos/wine/ |
H A D | winsock16.h | 95 SEGPTR buf, INT16 buflen); 97 LPCSTR proto, SEGPTR buf, INT16 buflen); 99 LPCSTR name, SEGPTR buf, INT16 buflen); 101 INT16 number, SEGPTR buf, INT16 buflen); 103 LPCSTR name, SEGPTR buf, INT16 buflen); 105 INT16 len, INT16 type, SEGPTR buf, INT16 buflen);
|
/reactos/modules/rostests/winetests/pdh/ |
H A D | pdh.c | 880 DWORD buflen; in test_PdhMakeCounterPathA() local 885 buflen = 0; in test_PdhMakeCounterPathA() 889 buflen = 0; in test_PdhMakeCounterPathA() 893 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 899 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 906 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 913 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 920 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 927 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() 934 buflen = sizeof(buffer); in test_PdhMakeCounterPathA() [all …]
|
/reactos/modules/rostests/apitests/ws2_32/ |
H A D | WSAIoctl.c | 74 ULONG buflen, BytesReturned, BCastAddr; in Test_WSAIoctl_GetInterfaceList() local 100 buflen = sizeof(INTERFACE_INFO)-1; in Test_WSAIoctl_GetInterfaceList() 101 buf = (BYTE*)HeapAlloc(GetProcessHeap(), 0, buflen); in Test_WSAIoctl_GetInterfaceList() 109 buf, buflen, &BytesReturned, 0, 0); in Test_WSAIoctl_GetInterfaceList() 129 buflen = sizeof(INTERFACE_INFO) * (i1+1) * 32; in Test_WSAIoctl_GetInterfaceList() 130 buf = (BYTE*)HeapAlloc(GetProcessHeap(), 0, buflen); in Test_WSAIoctl_GetInterfaceList() 138 buf, buflen, &BytesReturned, 0, 0); in Test_WSAIoctl_GetInterfaceList()
|
/reactos/dll/win32/ntdsapi/ |
H A D | ntdsapi.c | 209 DWORD WINAPI DsClientMakeSpnForTargetServerW(LPCWSTR class, LPCWSTR name, DWORD *buflen, LPWSTR buf) in DsClientMakeSpnForTargetServerW() argument 214 TRACE("(%s,%s,%p,%p)\n", debugstr_w(class), debugstr_w(name), buflen, buf); in DsClientMakeSpnForTargetServerW() 216 if (!class || !name || !buflen) return ERROR_INVALID_PARAMETER; in DsClientMakeSpnForTargetServerW() 219 if (*buflen < len) in DsClientMakeSpnForTargetServerW() 221 *buflen = len; in DsClientMakeSpnForTargetServerW() 224 *buflen = len; in DsClientMakeSpnForTargetServerW()
|
/reactos/drivers/network/tcpip/lwip/src/core/ |
H A D | ip.c | 101 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) in ipaddr_ntoa_r() argument 107 return ip6addr_ntoa_r(ip_2_ip6(addr), buf, buflen); in ipaddr_ntoa_r() 109 return ip4addr_ntoa_r(ip_2_ip4(addr), buf, buflen); in ipaddr_ntoa_r()
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | netdb.h | 124 size_t buflen, struct hostent **result, int *h_errnop); 135 #define gethostbyname_r(name, ret, buf, buflen, result, h_errnop) \ argument 136 lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop)
|
/reactos/dll/win32/winscard/ |
H A D | winscard.c | 132 …NG WINAPI SCardListReadersA(SCARDCONTEXT context, const CHAR *groups, CHAR *readers, DWORD *buflen) in SCardListReadersA() argument 134 FIXME("(%lx, %s, %p, %p) stub\n", context, debugstr_a(groups), readers, buflen); in SCardListReadersA() 138 … WINAPI SCardListReadersW(SCARDCONTEXT context, const WCHAR *groups, WCHAR *readers, DWORD *buflen) in SCardListReadersW() argument 140 FIXME("(%lx, %s, %p, %p) stub\n", context, debugstr_w(groups), readers, buflen); in SCardListReadersW()
|
/reactos/sdk/include/psdk/ |
H A D | winsock.h | 786 _Out_writes_bytes_(buflen) char FAR *buf, 787 _In_ int buflen); 796 _Out_writes_bytes_(buflen) char FAR *buf, 797 _In_ int buflen); 805 _Out_writes_bytes_(buflen) char FAR *buf, 806 _In_ int buflen); 814 _Out_writes_bytes_(buflen) char FAR *buf, 815 _In_ int buflen); 823 _Out_writes_bytes_(buflen) char FAR *buf, 824 _In_ int buflen); [all …]
|