Support pg_hba.conf-style syntax
authorMarko Kreen <markokr@gmail.com>
Mon, 3 Aug 2015 18:58:23 +0000 (21:58 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 3 Aug 2015 20:20:11 +0000 (23:20 +0300)
commit4d85caf96e5cd5a21719c458badfadb593e5284c
treecb7bb4f7949d6606dab185dedbd0de43b07ca0cb
parent7d89b19899b2ced290d6594a83f615a41e5a5fff
Support pg_hba.conf-style syntax

Also add peer auth.

Main reason to have it is that unix and tcp connections may
want different auth and configuring it in plain .ini is pain.

As a bonus it provides ip-based filtering too.

No username mapping yet though.
12 files changed:
Makefile
include/bouncer.h
include/hba.h [new file with mode: 0644]
include/system.h
src/client.c
src/hba.c [new file with mode: 0644]
src/main.c
src/system.c
test/Makefile
test/hba_test.c [new file with mode: 0644]
test/hba_test.eval [new file with mode: 0644]
test/hba_test.rules [new file with mode: 0644]