Print this page
pass 2
first pass

@@ -38,15 +38,12 @@
 #include <ctype.h>
 #include <syslog.h>
 #include <sys/time.h>
 #include "ns_sldap.h"
 #include "ns_internal.h"
-/* EXPORT DELETE START */
 #include <crypt.h>
 
-#define NS_DOMESTIC     1
-
 static  char            t1[ROTORSIZE];
 static  char            t2[ROTORSIZE];
 static  char            t3[ROTORSIZE];
 static  char            hexdig[] = "0123456789abcdef";
 

@@ -111,17 +108,15 @@
         }
         theRes[theLen] = '\0';
         *aResLen = theLen;
         return (theRes);
 }
-/* EXPORT DELETE END */
 
 
 static void
 c_setup()
 {
-/* EXPORT DELETE START */
         int ic, i, k, temp;
         unsigned random;
         char buf[13];
         int seed;
 

@@ -188,18 +183,16 @@
                 s[i] = '\0';
                 if (mod_len != NULL)
                     *mod_len = i;
         }
         return (s);
-/* EXPORT DELETE END */
 }
 
 
 char *
 evalue(char *ptr)
 {
-/* EXPORT DELETE START */
         char *modv, *str, *ev;
         int modv_len;
         size_t len;
 
         /*

@@ -223,23 +216,16 @@
         }
         (void) snprintf(ev, len, CRYPTMARK "%s", str);
         free(str);
         str = NULL;
         return (ev);
-#ifndef NS_DOMESTIC
-/* EXPORT DELETE END */
-        return (strdup(ptr));
-/* EXPORT DELETE START */
-#endif
-/* EXPORT DELETE END */
 }
 
 
 char *
 dvalue(char *ptr)
 {
-/* EXPORT DELETE START */
         char *modv, *str, *sb;
         int len;
 
         /* if cleartext return NULL (error!) */
         if (TRUE == is_cleartext(ptr))

@@ -251,12 +237,6 @@
         str = ascii2hex(sb, &len);
         modv = modvalue(str, len, NULL);
         free(str);
         str = NULL;
         return (modv);
-#ifndef NS_DOMESTIC
-/* EXPORT DELETE END */
-        return (strdup(ptr));
-/* EXPORT DELETE START */
-#endif
-/* EXPORT DELETE END */
 }