Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d4fb1b23
Commit
d4fb1b23
authored
Aug 15, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move md5.h contents to crypt.h.
parent
b5b0ce2b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
34 deletions
+17
-34
src/backend/commands/user.c
src/backend/commands/user.c
+1
-2
src/backend/libpq/crypt.c
src/backend/libpq/crypt.c
+1
-2
src/backend/libpq/md5.c
src/backend/libpq/md5.c
+2
-2
src/include/libpq/crypt.h
src/include/libpq/crypt.h
+9
-0
src/include/libpq/md5.h
src/include/libpq/md5.h
+0
-21
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+2
-5
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-auth.c
+2
-2
No files found.
src/backend/commands/user.c
View file @
d4fb1b23
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.8
0 2001/08/15 18:42:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.8
1 2001/08/15 21:08:20
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -25,7 +25,6 @@
#include "catalog/indexing.h"
#include "commands/user.h"
#include "libpq/crypt.h"
#include "libpq/md5.h"
#include "miscadmin.h"
#include "utils/array.h"
#include "utils/builtins.h"
...
...
src/backend/libpq/crypt.c
View file @
d4fb1b23
...
...
@@ -9,7 +9,7 @@
* Dec 17, 1997 - Todd A. Brandys
* Orignal Version Completed.
*
* $Id: crypt.c,v 1.3
3 2001/08/15 18:42:14
momjian Exp $
* $Id: crypt.c,v 1.3
4 2001/08/15 21:08:21
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -19,7 +19,6 @@
#include "postgres.h"
#include "libpq/crypt.h"
#include "libpq/md5.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "utils/nabstime.h"
...
...
src/backend/libpq/md5.c
View file @
d4fb1b23
...
...
@@ -18,7 +18,7 @@
#include <errno.h>
#include "postgres.h"
#include "libpq/
md5
.h"
#include "libpq/
crypt
.h"
/*
* PRIVATE FUNCTIONS
...
...
@@ -249,7 +249,7 @@ bytesToHex(unsigned8 b[16], char *s)
*
* Calculates the MD5 sum of the bytes in a buffer.
*
* SYNOPSIS #include "
md5
.h"
* SYNOPSIS #include "
crypt
.h"
* int md5_hash(const void *buff, size_t len, char *hexsum)
*
* INPUT buff the buffer containing the bytes that you want
...
...
src/include/libpq/crypt.h
View file @
d4fb1b23
...
...
@@ -24,4 +24,13 @@ extern char *crypt_getpwdreloadfilename(void);
extern
int
md5_crypt_verify
(
const
Port
*
port
,
const
char
*
user
,
const
char
*
pgpass
);
extern
bool
md5_hash
(
const
void
*
buff
,
size_t
len
,
char
*
hexsum
);
extern
bool
CheckMD5Pwd
(
char
*
passwd
,
char
*
storedpwd
,
char
*
seed
);
extern
bool
EncryptMD5
(
const
char
*
passwd
,
const
char
*
salt
,
char
*
buf
);
#define MD5_PASSWD_LEN 35
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
strlen(passwd) == MD5_PASSWD_LEN)
#endif
src/include/libpq/md5.h
deleted
100644 → 0
View file @
b5b0ce2b
/*-------------------------------------------------------------------------
*
* md5.h
* Interface to hba.c
*
*
*-------------------------------------------------------------------------
*/
#ifndef PG_MD5_H
#define PG_MD5_H
extern
bool
md5_hash
(
const
void
*
buff
,
size_t
len
,
char
*
hexsum
);
extern
bool
CheckMD5Pwd
(
char
*
passwd
,
char
*
storedpwd
,
char
*
seed
);
extern
bool
EncryptMD5
(
const
char
*
passwd
,
const
char
*
salt
,
char
*
buf
);
#define MD5_PASSWD_LEN 35
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
strlen(passwd) == MD5_PASSWD_LEN)
#endif
src/interfaces/libpq/Makefile
View file @
d4fb1b23
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.5
4 2001/08/15 18:42:15
momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.5
5 2001/08/15 21:08:21
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -33,7 +33,7 @@ endif
SHLIB_LINK
+=
$(
filter
-L
%,
$(LDFLAGS)
)
$(
filter
-lcrypt
-ldes
-lkrb
-lcom_err
-lcrypto
-lk5crypto
-lkrb5
-lssl
-lsocket
-lnsl
-lresolv
-lintl
,
$(LIBS)
)
all
:
md5.c
md5.h
all-lib
all
:
md5.c all-lib
# Shared library stuff
include
$(top_srcdir)/src/Makefile.shlib
...
...
@@ -52,9 +52,6 @@ dllist.c: $(backend_src)/lib/dllist.c
md5.c
:
$(backend_src)/libpq/md5.c
rm
-f
$@
&&
$(LN_S)
$<
.
md5.h
:
$(backend_src)/../include/libpq/md5.h
rm
-f
$@
&&
$(LN_S)
$<
.
# this only gets done if configure finds system doesn't have inet_aton()
inet_aton.c
:
$(backend_src)/port/inet_aton.c
rm
-f
$@
&&
$(LN_S)
$<
.
...
...
src/interfaces/libpq/fe-auth.c
View file @
d4fb1b23
...
...
@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.
49 2001/08/15 18:42:15
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.
50 2001/08/15 21:08:21
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,7 +33,7 @@
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fe-auth.h"
#include "
md5
.h"
#include "
libpq/crypt
.h"
#ifdef WIN32
#include "win32.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment