mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Remove dead-since-introduction pgcrypto code.
Marko Tiikkaja
This commit is contained in:
@ -1069,7 +1069,7 @@ pgp_skip_packet(PullFilter *pkt)
|
|||||||
|
|
||||||
while (res > 0)
|
while (res > 0)
|
||||||
res = pullf_read(pkt, 32 * 1024, &tmp);
|
res = pullf_read(pkt, 32 * 1024, &tmp);
|
||||||
return res < 0 ? res : 0;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1078,19 +1078,16 @@ pgp_skip_packet(PullFilter *pkt)
|
|||||||
int
|
int
|
||||||
pgp_expect_packet_end(PullFilter *pkt)
|
pgp_expect_packet_end(PullFilter *pkt)
|
||||||
{
|
{
|
||||||
int res = 1;
|
int res;
|
||||||
uint8 *tmp;
|
uint8 *tmp;
|
||||||
|
|
||||||
while (res > 0)
|
res = pullf_read(pkt, 32 * 1024, &tmp);
|
||||||
|
if (res > 0)
|
||||||
{
|
{
|
||||||
res = pullf_read(pkt, 32 * 1024, &tmp);
|
px_debug("pgp_expect_packet_end: got data");
|
||||||
if (res > 0)
|
return PXE_PGP_CORRUPT_DATA;
|
||||||
{
|
|
||||||
px_debug("pgp_expect_packet_end: got data");
|
|
||||||
return PXE_PGP_CORRUPT_DATA;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return res < 0 ? res : 0;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user