Index: trunk/include/sh_unix.h
===================================================================
--- trunk/include/sh_unix.h	(revision 164)
+++ trunk/include/sh_unix.h	(revision 167)
@@ -90,4 +90,8 @@
 /* use prelink     */
 #define MODI_PREL (1 << 13)
+/* get content     */
+#define MODI_TXT (1 << 14)
+
+#define SH_TXT_MAX 9200
 
 #define MASK_ALLIGNORE_  0
@@ -140,5 +144,5 @@
   time_t           ctime;
 
-  char             linkpath[PATH_MAX];
+  char           * link_path;
   mode_t           linkmode;
   char             link_c_mode[11];
Index: trunk/include/sh_utils.h
===================================================================
--- trunk/include/sh_utils.h	(revision 164)
+++ trunk/include/sh_utils.h	(revision 167)
@@ -190,3 +190,24 @@
 char * sh_util_basename(const char * fullpath);
 
+/* required size (including terminating NULL) for string of strlen l
+ */
+#define SH_B64_SIZ(l)  (1 + ((((l) + 2) / 3) * 4))
+
+/* return len of encoded string
+ */
+size_t sh_util_base64_enc (unsigned char * out, const unsigned char * instr, 
+			   size_t lin);
+
+/* return allocated encoded string in out, return its len
+ */
+size_t sh_util_base64_enc_alloc (char **out, const char *in, size_t inlen);
+
+/* return len of decoded string
+ */  
+size_t sh_util_base64_dec (unsigned char *out, const unsigned char *in, size_t lin);
+
+/* return allocated decoded string in out, return its len
+ */  
+size_t sh_util_base64_dec_alloc (unsigned char **out, const unsigned char *in, size_t lin);
+
 #endif
Index: trunk/include/slib.h
===================================================================
--- trunk/include/slib.h	(revision 164)
+++ trunk/include/slib.h	(revision 167)
@@ -23,4 +23,6 @@
 #include <unistd.h>
 #endif
+
+#include "sh_string.h"
 
 /****************
@@ -333,4 +335,12 @@
   SL_TICKET  sl_open_rdwr_trunc  (const char * fname, int priviledge_mode);
 
+  /* Initialize the content sh_string.
+   */
+  int sl_init_content (SL_TICKET ticket, size_t size);
+
+  /* Get the (pointer to) the content sh_string.
+   */
+  sh_string * sl_get_content (SL_TICKET ticket);
+
   /* Close file.
    */
