mirror of
https://github.com/samba-team/samba.git
synced 2025-09-19 13:44:20 +03:00
Add data_blob_string_const_null() function that includes the terminating
null byte and use it in Samba 3. This matches the behaviour prior to my data_blob changes.
This commit is contained in:
@@ -104,6 +104,14 @@ _PUBLIC_ char *data_blob_hex_string(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob);
|
||||
**/
|
||||
_PUBLIC_ DATA_BLOB data_blob_string_const(const char *str);
|
||||
|
||||
/**
|
||||
useful for constructing data blobs in test suites, while
|
||||
avoiding const warnings
|
||||
|
||||
includes the terminating null character (as opposed to data_blo_string_const)
|
||||
**/
|
||||
_PUBLIC_ DATA_BLOB data_blob_string_const_null(const char *str);
|
||||
|
||||
/**
|
||||
* Create a new data blob from const data
|
||||
*/
|
||||
|
Reference in New Issue
Block a user