mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-22 00:03:23 +02:00
With this commit, SHA1 goes through the implementation provided by OpenSSL via EVP when building the backend with it, and uses as fallback implementation KAME which was located in pgcrypto and already shaped for an integration with a set of init, update and final routines. Structures and routines have been renamed to make things consistent with the fallback implementations of MD5 and SHA2. uuid-ossp has used for ages a shortcut with pgcrypto to fetch a copy of SHA1 if needed. This was built depending on the build options within ./configure, so this cleans up some code and removes the build dependency between pgcrypto and uuid-ossp. Note that this will help with the refactoring of HMAC, as pgcrypto offers the option to use MD5, SHA1 or SHA2, so only the second option was missing to make that possible. Author: Michael Paquier Reviewed-by: Heikki Linnakangas Discussion: https://postgr.es/m/X9HXKTgrvJvYO7Oh@paquier.xyz
31 lines
628 B
Makefile
31 lines
628 B
Makefile
# contrib/uuid-ossp/Makefile
|
|
|
|
MODULE_big = uuid-ossp
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
uuid-ossp.o
|
|
|
|
EXTENSION = uuid-ossp
|
|
DATA = uuid-ossp--1.1.sql uuid-ossp--1.0--1.1.sql
|
|
PGFILEDESC = "uuid-ossp - UUID generation"
|
|
|
|
REGRESS = uuid_ossp
|
|
|
|
SHLIB_LINK += $(UUID_LIBS)
|
|
|
|
# We copy some needed files verbatim from pgcrypto
|
|
pgcrypto_src = $(top_srcdir)/contrib/pgcrypto
|
|
|
|
PG_CPPFLAGS = -I$(pgcrypto_src)
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/uuid-ossp
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|