Commit d1f09fc7 authored by Nick Kew's avatar Nick Kew
Browse files

Faffing about with colon-delimiters (originally copied from mod_authn_dbm)

is deeply superfluous in an SQL context.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@326054 13f79535-47bb-0310-9956-ffa450edef68
parent db3196fc
Loading
Loading
Loading
Loading
+0 −13
Changes for modules/aaa/mod_authn_dbd.c: 0 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ static authn_status authn_dbd_password(request_rec *r, const char *user,
{
    apr_status_t rv;
    const char *dbd_password = NULL;
    char *colon_pw;
    apr_dbd_prepared_t *statement;
    apr_dbd_results_t *res = NULL;
    apr_dbd_row_t *row = NULL;
@@ -136,11 +135,6 @@ static authn_status authn_dbd_password(request_rec *r, const char *user,
        return AUTH_USER_NOT_FOUND;
    }

    colon_pw = ap_strchr(dbd_password, ':');
    if (colon_pw) {
        *colon_pw = '\0';
    }

    rv = apr_password_validate(password, dbd_password);

    if (rv != APR_SUCCESS) {
@@ -154,7 +148,6 @@ static authn_status authn_dbd_realm(request_rec *r, const char *user,
{
    apr_status_t rv;
    const char *dbd_hash = NULL;
    char *colon_hash;
    apr_dbd_prepared_t *statement;
    apr_dbd_results_t *res = NULL;
    apr_dbd_row_t *row = NULL;
@@ -200,13 +193,7 @@ static authn_status authn_dbd_realm(request_rec *r, const char *user,
        return AUTH_USER_NOT_FOUND;
    }

    colon_hash = ap_strchr(dbd_hash, ':');
    if (colon_hash) {
        *colon_hash = '\0';
    }

    *rethash = apr_pstrdup(r->pool, dbd_hash);

    return AUTH_USER_FOUND;
}
static void authn_dbd_hooks(apr_pool_t *p)