X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=58d0d3b8ec4658b28a815f841d10a9b012adc82a;hp=5cc58e65aa9c031f8ea17b13ea3afef78e41c2e4;hb=75c9defe1c9ffb8efe58507dc994a56e6fd0409b;hpb=92b4e042f027d999411ee8c20814cc76e2736e71 diff --git a/src/srwutil.c b/src/srwutil.c index 5cc58e6..58d0d3b 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -175,6 +175,7 @@ char *yaz_uri_val(const char *path, const char *name, ODR o) return 0; } +#if YAZ_HAVE_XML2 static int yaz_base64decode(const char *in, char *out) { const char *map = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" @@ -220,6 +221,7 @@ static int yaz_base64decode(const char *in, char *out) *out = '\0'; return olen; } +#endif int yaz_srw_check_content_type(Z_HTTP_Response *hres) { @@ -239,6 +241,7 @@ int yaz_srw_check_content_type(Z_HTTP_Response *hres) * Look for authentication tokens in HTTP Basic parameters or in x-username/x-password * parameters. Added by SH. */ +#if YAZ_HAVE_XML2 static void yaz_srw_decodeauth(Z_SRW_PDU *sr, Z_HTTP_Request *hreq, char *username, char *password, ODR decode) { @@ -273,6 +276,7 @@ static void yaz_srw_decodeauth(Z_SRW_PDU *sr, Z_HTTP_Request *hreq, sr->password = odr_strdup(decode, pbuf); } } +#endif void yaz_uri_val_int(const char *path, const char *name, ODR o, int **intp) { @@ -456,6 +460,7 @@ int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, return 2; } +#if YAZ_HAVE_XML2 static int yaz_sru_decode_integer(ODR odr, const char *pname, const char *valstr, int **valp, Z_SRW_diagnostic **diag, int *num_diag, @@ -479,6 +484,7 @@ static int yaz_sru_decode_integer(ODR odr, const char *pname, *valp = odr_intdup(odr, ival); return 1; } +#endif /** http://www.loc.gov/z3950/agency/zing/srw/service.html