diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-06 19:57:16 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-06 19:57:16 +0000 |
commit | a6bc25dcac9e81aafa0761e9ef4aaed2291abc89 (patch) | |
tree | bf9d458563efd32687cedb1b5e03e51c1e8f006e /libextra | |
parent | 942db004726ceea6bfa2eb6c71b9df7f609a65d2 (diff) | |
download | gnutls-a6bc25dcac9e81aafa0761e9ef4aaed2291abc89.tar.gz |
some changes to compile in mingw32.
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/auth_srp_passwd.c | 10 | ||||
-rw-r--r-- | libextra/gnutls_openpgp.c | 5 |
2 files changed, 5 insertions, 10 deletions
diff --git a/libextra/auth_srp_passwd.c b/libextra/auth_srp_passwd.c index 77a31aeed4..67cdaf1732 100644 --- a/libextra/auth_srp_passwd.c +++ b/libextra/auth_srp_passwd.c @@ -49,7 +49,7 @@ opaque *verifier; size_t verifier_size; int indx; - p = rindex( str, ':'); /* we have index */ + p = strrchr( str, ':'); /* we have index */ if (p==NULL) { gnutls_assert(); return GNUTLS_E_SRP_PWD_PARSING_ERROR; @@ -66,7 +66,7 @@ int indx; } /* now go for salt */ - p = rindex( str, ':'); /* we have salt */ + p = strrchr( str, ':'); /* we have salt */ if (p==NULL) { gnutls_assert(); return GNUTLS_E_SRP_PWD_PARSING_ERROR; @@ -85,7 +85,7 @@ int indx; } /* now go for verifier */ - p = rindex( str, ':'); /* we have verifier */ + p = strrchr( str, ':'); /* we have verifier */ if (p==NULL) { _gnutls_free_datum(&entry->salt); return GNUTLS_E_SRP_PWD_PARSING_ERROR; @@ -131,7 +131,7 @@ int len; opaque * tmp; int ret; - p = rindex( str, ':'); /* we have g */ + p = strrchr( str, ':'); /* we have g */ if (p==NULL) { gnutls_assert(); return GNUTLS_E_SRP_PWD_PARSING_ERROR; @@ -154,7 +154,7 @@ int ret; entry->g.size = ret; /* now go for n - modulo */ - p = rindex( str, ':'); /* we have n */ + p = strrchr( str, ':'); /* we have n */ if (p==NULL) { _gnutls_free_datum( &entry->g); gnutls_assert(); diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c index 61b47a43ae..c1e9ec5025 100644 --- a/libextra/gnutls_openpgp.c +++ b/libextra/gnutls_openpgp.c @@ -36,11 +36,6 @@ #include <opencdk.h> #include <time.h> #include <sys/stat.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#include <netdb.h> -#include <assert.h> #define OPENPGP_NAME_SIZE 256 |