]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/base32/base32.h
base32: add ability to substitute character set.
[ccan] / ccan / str / base32 / base32.h
index 6960fe821e3041e8f847977ce37450acebb26e6c..177aad7e07a4a5f7229a6a344c8675e1db907c94 100644 (file)
@@ -65,4 +65,13 @@ size_t base32_str_size(size_t bytes);
  *     base32_decode(str, strlen(str), buf, sizeof(buf));
  */
 size_t base32_data_size(const char *str, size_t strlen);
+
+/**
+ * base32_chars - the encoding/decoding array to use.
+ *
+ * It must be at least 33 characters long, representing 32 values and
+ * the pad value.  The default array is "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=".
+ */
+extern const char *base32_chars;
+
 #endif /* CCAN_STR_BASE32_H */