git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9c3102
)
blob: generate a blob out of a string
author
Matthieu Patou
<mat@matws.net>
Mon, 16 Apr 2012 04:54:28 +0000
(21:54 -0700)
committer
Matthieu Patou
<mat@matws.net>
Mon, 16 Apr 2012 22:23:57 +0000
(15:23 -0700)
lib/util/data_blob.h
patch
|
blob
|
history
diff --git
a/lib/util/data_blob.h
b/lib/util/data_blob.h
index 09a9292aeda0c99a8ea234eaaaedb17f6b0bf747..f214e266fd791b138829d6cf2e2d5b1fa2ac86f5 100644
(file)
--- a/
lib/util/data_blob.h
+++ b/
lib/util/data_blob.h
@@
-132,4
+132,6
@@
_PUBLIC_ bool data_blob_append(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
extern const DATA_BLOB data_blob_null;
+#define STRING_TO_BLOB(x) ((DATA_BLOB){discard_const_p(uint8_t, x), sizeof(x) - 1})
+
#endif /* _SAMBA_DATABLOB_H_ */