Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
6d70d550
Commit
6d70d550
authored
28 years ago
by
Bryan Henderson
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for new host-based authentication
parent
81cda65f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/libpq/hba.h
+20
-0
20 additions, 0 deletions
src/include/libpq/hba.h
src/include/libpq/pqcomm.h
+13
-2
13 additions, 2 deletions
src/include/libpq/pqcomm.h
with
33 additions
and
2 deletions
src/include/libpq/hba.h
0 → 100644
+
20
−
0
View file @
6d70d550
/*-------------------------------------------------------------------------
*
* hba.h--
* Interface to hba.c
*
*
* $Id: hba.h,v 1.1 1996/10/11 09:12:17 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HBA_H
#define HBA_H
#include
<libpq/pqcomm.h>
extern
int
hba_recvauth
(
const
Port
*
port
,
const
char
database
[],
const
char
user
[],
const
char
DataDir
[]);
#endif
This diff is collapsed.
Click to expand it.
src/include/libpq/pqcomm.h
+
13
−
2
View file @
6d70d550
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pqcomm.h,v 1.
1
1996/
08/28 07:23:02 scrappy
Exp $
* $Id: pqcomm.h,v 1.
2
1996/
10/11 09:12:18 bryanh
Exp $
*
*
* NOTES
* NOTES
* Some of this should move to libpq.h
* Some of this should move to libpq.h
...
@@ -31,6 +31,16 @@
...
@@ -31,6 +31,16 @@
#define PATH_SIZE 64
#define PATH_SIZE 64
#define ARGV_SIZE 64
#define ARGV_SIZE 64
/* The various kinds of startup messages are for the various kinds of
user authentication systems. In the beginning, there was only
STARTUP_MSG and all connections were unauthenticated. Now, there are
several choices of authentication method (the client picks one, but
the server needn't necessarily accept it). So now, the STARTUP_MSG
message means to start either an unauthenticated or a host-based
authenticated connection, depending on what the server prefers. This
is possible because the protocol between server and client is the same
in both cases (basically, no negotiation is required at all).
*/
typedef
enum
_MsgType
{
typedef
enum
_MsgType
{
ACK_MSG
=
0
,
/* acknowledge a message */
ACK_MSG
=
0
,
/* acknowledge a message */
...
@@ -45,7 +55,8 @@ typedef enum _MsgType {
...
@@ -45,7 +55,8 @@ typedef enum _MsgType {
INVALID_MSG
=
9
,
/* for some control functions */
INVALID_MSG
=
9
,
/* for some control functions */
STARTUP_KRB4_MSG
=
10
,
/* krb4 session follows startup packet */
STARTUP_KRB4_MSG
=
10
,
/* krb4 session follows startup packet */
STARTUP_KRB5_MSG
=
11
,
/* krb5 session follows startup packet */
STARTUP_KRB5_MSG
=
11
,
/* krb5 session follows startup packet */
STARTUP_HBA_MSG
=
12
/* use host-based authentication */
STARTUP_HBA_MSG
=
12
,
/* use host-based authentication */
STARTUP_UNAUTH_MSG
=
13
/* use unauthenticated connection */
/* insert new values here -- DO NOT REORDER OR DELETE ENTRIES */
/* insert new values here -- DO NOT REORDER OR DELETE ENTRIES */
}
MsgType
;
}
MsgType
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment