diff options
-rw-r--r-- | source4/lib/data_blob.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c index 1551879933..18ecc2793a 100644 --- a/source4/lib/data_blob.c +++ b/source4/lib/data_blob.c @@ -173,3 +173,10 @@ DATA_BLOB data_blob_string_const(const char *str) return blob; } +DATA_BLOB data_blob_const(const void *p, size_t length) +{ + DATA_BLOB blob; + blob.data = discard_const(p); + blob.length = length; + return blob; +} |