~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/interfaces/libpq/fe-auth.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Portions Copyright (c) 1994, Regents of the University of California
8
8
 *
9
9
 * IDENTIFICATION
10
 
 *        $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.141 2009/03/22 18:06:35 tgl Exp $
 
10
 *        $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.142 2009/06/11 14:49:13 momjian Exp $
11
11
 *
12
12
 *-------------------------------------------------------------------------
13
13
 */
580
580
                }
581
581
 
582
582
                /*
583
 
                 * If the negotiation is complete, there may be zero bytes to send. The server is
584
 
                 * at this point not expecting any more data, so don't send it.
 
583
                 * If the negotiation is complete, there may be zero bytes to send.
 
584
                 * The server is at this point not expecting any more data, so don't
 
585
                 * send it.
585
586
                 */
586
587
                if (outbuf.pBuffers[0].cbBuffer > 0)
587
588
                {
588
589
                        if (pqPacketSend(conn, 'p',
589
 
                                           outbuf.pBuffers[0].pvBuffer, outbuf.pBuffers[0].cbBuffer))
 
590
                                   outbuf.pBuffers[0].pvBuffer, outbuf.pBuffers[0].cbBuffer))
590
591
                        {
591
592
                                FreeContextBuffer(outbuf.pBuffers[0].pvBuffer);
592
593
                                return STATUS_ERROR;
914
915
 
915
916
                case AUTH_REQ_CRYPT:
916
917
                        printfPQExpBuffer(&conn->errorMessage,
917
 
                                 libpq_gettext("Crypt authentication not supported\n"));
 
918
                                          libpq_gettext("Crypt authentication not supported\n"));
918
919
                        return STATUS_ERROR;
919
920
 
920
921
                case AUTH_REQ_MD5:
971
972
#endif
972
973
 
973
974
        /*
974
 
         * Some users are using configure
975
 
         * --enable-thread-safety-force, so we might as well do the locking within
976
 
         * our library to protect pqGetpwuid(). In fact, application developers
977
 
         * can use getpwuid() in their application if they use the locking call we
978
 
         * provide, or install their own locking function using
979
 
         * PQregisterThreadLock().
 
975
         * Some users are using configure --enable-thread-safety-force, so we
 
976
         * might as well do the locking within our library to protect
 
977
         * pqGetpwuid(). In fact, application developers can use getpwuid() in
 
978
         * their application if they use the locking call we provide, or install
 
979
         * their own locking function using PQregisterThreadLock().
980
980
         */
981
981
        pglock_thread();
982
982