Changeset 624
- Timestamp:
- 09/07/08 09:55:15 (5 months ago)
- Files:
-
- 1 modified
-
trunk/sx/sasl_gsasl.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sx/sasl_gsasl.c
r584 r624 271 271 char *buf = NULL, *out = NULL, *realm = NULL, *ext_id; 272 272 char hostname[256]; 273 int buflen, outlen, ret, i; 273 int ret, i; 274 size_t buflen, outlen; 274 275 275 276 if(mech != NULL) { … … 336 337 } 337 338 338 ret = gsasl_step(sd, buf, buflen, &out, (size_t *)&outlen);339 ret = gsasl_step(sd, buf, buflen, &out, &outlen); 339 340 if(ret != GSASL_OK && ret != GSASL_NEEDS_MORE) { 340 341 _sx_debug(ZONE, "gsasl_step failed, no sasl for this conn; (%d): %s", ret, gsasl_strerror(ret)); … … 356 357 } 357 358 _sx_debug(ZONE, "response from client (decoded: %.*s)", buflen, buf); 358 ret = gsasl_step(sd, buf, buflen, &out, (size_t *)&outlen);359 ret = gsasl_step(sd, buf, buflen, &out, &outlen); 359 360 } 360 361 … … 405 406 static void _sx_sasl_server_process(sx_t s, sx_plugin_t p, Gsasl_session *sd, char *in, int inlen) { 406 407 char *buf, *out; 407 int buflen, outlen, ret; 408 size_t buflen, outlen; 409 int ret; 408 410 409 411 _sx_debug(ZONE, "data from client"); … … 414 416 415 417 /* process the data */ 416 ret = gsasl_step(sd, buf, buflen, &out, (size_t *)&outlen);418 ret = gsasl_step(sd, buf, buflen, &out, &outlen); 417 419 if(buf != NULL) free(buf); 418 420 … … 722 724 char *buf, *out; 723 725 char hostname[256]; 724 int ret, buflen, outlen, ns; 726 int ret, ns; 727 size_t buflen, outlen; 725 728 nad_t nad; 726 729 … … 758 761 759 762 /* handshake step */ 760 ret = gsasl_step(sd, NULL, 0, &out, (size_t *)&outlen);763 ret = gsasl_step(sd, NULL, 0, &out, &outlen); 761 764 if(ret != GSASL_OK && ret != GSASL_NEEDS_MORE) { 762 765 _sx_debug(ZONE, "gsasl_step failed, not authing; (%d): %s", ret, gsasl_strerror(ret));
