diff options
author | mcgreer%netscape.com <devnull@localhost> | 2000-05-23 22:15:25 +0000 |
---|---|---|
committer | mcgreer%netscape.com <devnull@localhost> | 2000-05-23 22:15:25 +0000 |
commit | 54bcd76a24bc22183fac27396de712612b6a1121 (patch) | |
tree | bf192e5f0d9e8baac635c7da95dd994aff5b4318 | |
parent | a7b4c7baeab1484eb16c3e570922cffc38fccbfb (diff) | |
download | nss-hg-54bcd76a24bc22183fac27396de712612b6a1121.tar.gz |
Added calls for BSAFE 5.0
-rwxr-xr-x | security/nss/lib/freebl/fblstdlib.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/security/nss/lib/freebl/fblstdlib.c b/security/nss/lib/freebl/fblstdlib.c index 6aebd5a36..7aeb8efef 100755 --- a/security/nss/lib/freebl/fblstdlib.c +++ b/security/nss/lib/freebl/fblstdlib.c @@ -33,7 +33,7 @@ #include <stdio.h> #include <stdlib.h> -#include <string.h> +#include <plstr.h> #include "aglobal.h" #include "bsafe.h" #include "secport.h" @@ -44,7 +44,7 @@ int c; unsigned int count; { if (count >= 0) - PORT_Memset(p, c, count); + memset(p, c, count); } void CALL_CONV T_memcpy (d, s, count) @@ -52,7 +52,7 @@ POINTER d, s; unsigned int count; { if (count >= 0) - PORT_Memcpy(d, s, count); + memcpy(d, s, count); } void CALL_CONV T_memmove (d, s, count) @@ -70,7 +70,7 @@ unsigned int count; if (count == 0) return (0); else - return(PORT_Memcmp(s1, s2, count)); + return(memcmp(s1, s2, count)); } POINTER CALL_CONV T_malloc (size) @@ -100,3 +100,21 @@ POINTER p; PORT_Free(p); } +unsigned int CALL_CONV T_strlen(p) +char *p; +{ + return PL_strlen(p); +} + +void CALL_CONV T_strcpy(dest, src) +char *dest; +char *src; +{ + PL_strcpy(dest, src); +} + +int CALL_CONV T_strcmp (a, b) +char *a, *b; +{ + return (PL_strcmp (a, b)); +} |