• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Heimdal-323.92.1/lib/krb5/

Lines Matching defs:cb_data

75  * If cb_data is MAX_DWORD, the string pointed to by data must be nul-terminated
81 * @param [in]cb_data Size of the input string in bytes. MAX_DWORD if unknown.
92 DWORD type, const char *data, DWORD cb_data,
108 if (cb_data == MAX_DWORD)
110 cb_data = (DWORD)strlen(data) + 1;
112 else if ((type == REG_MULTI_SZ && cb_data >= sizeof(static_buffer) - 1) ||
113 cb_data >= sizeof(static_buffer))
116 krb5_set_error_message(context, 0, "cb_data too big");
119 else if (data[cb_data-1] != '\0')
121 memcpy(static_buffer, data, cb_data);
122 static_buffer[cb_data++] = '\0';
124 static_buffer[cb_data++] = '\0';
145 rcode = RegSetValueEx(key, valuename, 0, type, data, cb_data);
163 static_buffer[cb_data++] = '\0';
165 for ( cp = static_buffer; cp < static_buffer+cb_data; cp++)
171 rcode = RegSetValueEx(key, valuename, 0, type, data, cb_data);
219 DWORD type, DWORD cb_data)
222 type, cb_data, " ");
258 DWORD type, DWORD cb_data, char *separator)
267 /* If we know a type and cb_data from a previous call to
272 if (type == REG_NONE || cb_data == 0) {
275 cb_alloc = cb_data = sizeof(static_buffer);
276 rcode = RegQueryValueExA(key, valuename, NULL, &type, pbuffer, &cb_data);
281 type != REG_EXPAND_SZ) || cb_data + 1 <= sizeof(static_buffer)) &&
283 (type != REG_MULTI_SZ || cb_data + 2 <= sizeof(static_buffer)))
295 if (cb_data != sizeof(DWORD)) {
307 if (rcode == ERROR_SUCCESS && cb_data > 0 && pbuffer[cb_data - 1] == '\0')
310 cb_data += sizeof(char); /* Accout for potential missing NUL
316 if (rcode == ERROR_SUCCESS && cb_data > 0 && pbuffer[cb_data - 1] == '\0' &&
317 (cb_data == 1 || pbuffer[cb_data - 2] == '\0'))
320 cb_data += sizeof(char) * 2; /* Potential missing double NUL
332 if (cb_data <= sizeof(static_buffer))
335 pbuffer = malloc(cb_data);
340 cb_alloc = cb_data;
341 rcode = RegQueryValueExA(key, valuename, NULL, NULL, pbuffer, &cb_data);
357 if (cb_data > cb_alloc || cb_data == 0) {
375 if (str[cb_data - 1] != '\0') {
376 if (cb_data < cb_alloc)
377 str[cb_data] = '\0';
398 if (str[cb_data - 1] != '\0') {
399 if (cb_data < cb_alloc)
400 str[cb_data] = '\0';