chiark / gitweb /
wip about to undo
[authbind.git] / authbind.h
index 3911c08db967068da7bf91c90c12cd0515fe6cf2..94abaa0748af502e95fe58d217da495686c3f244 100644 (file)
 # define HELPER "/usr/local/lib/authbind/helper"
 #endif
 
+#ifndef CONFIGDIR
+# define CONFIGDIR "/etc/authbind"
+#endif
+
 #define PRELOAD_VAR "LD_PRELOAD"
 #define AUTHBINDLIB_VAR "AUTHBIND_LIB"
 #define AUTHBIND_LEVELS_VAR "AUTHBIND_LEVELS"
 
+static inline void bytes2hex(const unsigned char *in, char *out, size_t len) {
+  size_t i;
+  for (i=0; i<16; i++)
+    sprintf(out+i*2,"%02x", in[i]);
+}
+
 #endif