mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.c,v 1.3 2005/10/15 02:49:06 momjian Exp $
|
||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.c,v 1.4 2009/06/11 14:48:52 momjian Exp $
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
@ -165,7 +165,7 @@ pgp_get_cipher_block_size(int code)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_load_cipher(int code, PX_Cipher ** res)
|
||||
pgp_load_cipher(int code, PX_Cipher **res)
|
||||
{
|
||||
int err;
|
||||
const struct cipher_info *i = get_cipher_info(code);
|
||||
@ -181,7 +181,7 @@ pgp_load_cipher(int code, PX_Cipher ** res)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_load_digest(int code, PX_MD ** res)
|
||||
pgp_load_digest(int code, PX_MD **res)
|
||||
{
|
||||
int err;
|
||||
const char *name = pgp_get_digest_name(code);
|
||||
@ -197,7 +197,7 @@ pgp_load_digest(int code, PX_MD ** res)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_init(PGP_Context ** ctx_p)
|
||||
pgp_init(PGP_Context **ctx_p)
|
||||
{
|
||||
PGP_Context *ctx;
|
||||
|
||||
@ -221,7 +221,7 @@ pgp_init(PGP_Context ** ctx_p)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_free(PGP_Context * ctx)
|
||||
pgp_free(PGP_Context *ctx)
|
||||
{
|
||||
if (ctx->pub_key)
|
||||
pgp_key_free(ctx->pub_key);
|
||||
@ -231,28 +231,28 @@ pgp_free(PGP_Context * ctx)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_disable_mdc(PGP_Context * ctx, int disable)
|
||||
pgp_disable_mdc(PGP_Context *ctx, int disable)
|
||||
{
|
||||
ctx->disable_mdc = disable ? 1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_sess_key(PGP_Context * ctx, int use)
|
||||
pgp_set_sess_key(PGP_Context *ctx, int use)
|
||||
{
|
||||
ctx->use_sess_key = use ? 1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_convert_crlf(PGP_Context * ctx, int doit)
|
||||
pgp_set_convert_crlf(PGP_Context *ctx, int doit)
|
||||
{
|
||||
ctx->convert_crlf = doit ? 1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_s2k_mode(PGP_Context * ctx, int mode)
|
||||
pgp_set_s2k_mode(PGP_Context *ctx, int mode)
|
||||
{
|
||||
int err = PXE_OK;
|
||||
|
||||
@ -271,7 +271,7 @@ pgp_set_s2k_mode(PGP_Context * ctx, int mode)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_compress_algo(PGP_Context * ctx, int algo)
|
||||
pgp_set_compress_algo(PGP_Context *ctx, int algo)
|
||||
{
|
||||
switch (algo)
|
||||
{
|
||||
@ -286,7 +286,7 @@ pgp_set_compress_algo(PGP_Context * ctx, int algo)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_compress_level(PGP_Context * ctx, int level)
|
||||
pgp_set_compress_level(PGP_Context *ctx, int level)
|
||||
{
|
||||
if (level >= 0 && level <= 9)
|
||||
{
|
||||
@ -297,14 +297,14 @@ pgp_set_compress_level(PGP_Context * ctx, int level)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_text_mode(PGP_Context * ctx, int mode)
|
||||
pgp_set_text_mode(PGP_Context *ctx, int mode)
|
||||
{
|
||||
ctx->text_mode = mode;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_cipher_algo(PGP_Context * ctx, const char *name)
|
||||
pgp_set_cipher_algo(PGP_Context *ctx, const char *name)
|
||||
{
|
||||
int code = pgp_get_cipher_code(name);
|
||||
|
||||
@ -315,7 +315,7 @@ pgp_set_cipher_algo(PGP_Context * ctx, const char *name)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_s2k_cipher_algo(PGP_Context * ctx, const char *name)
|
||||
pgp_set_s2k_cipher_algo(PGP_Context *ctx, const char *name)
|
||||
{
|
||||
int code = pgp_get_cipher_code(name);
|
||||
|
||||
@ -326,7 +326,7 @@ pgp_set_s2k_cipher_algo(PGP_Context * ctx, const char *name)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_s2k_digest_algo(PGP_Context * ctx, const char *name)
|
||||
pgp_set_s2k_digest_algo(PGP_Context *ctx, const char *name)
|
||||
{
|
||||
int code = pgp_get_digest_code(name);
|
||||
|
||||
@ -337,20 +337,20 @@ pgp_set_s2k_digest_algo(PGP_Context * ctx, const char *name)
|
||||
}
|
||||
|
||||
int
|
||||
pgp_get_unicode_mode(PGP_Context * ctx)
|
||||
pgp_get_unicode_mode(PGP_Context *ctx)
|
||||
{
|
||||
return ctx->unicode_mode;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_unicode_mode(PGP_Context * ctx, int mode)
|
||||
pgp_set_unicode_mode(PGP_Context *ctx, int mode)
|
||||
{
|
||||
ctx->unicode_mode = mode ? 1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pgp_set_symkey(PGP_Context * ctx, const uint8 *key, int len)
|
||||
pgp_set_symkey(PGP_Context *ctx, const uint8 *key, int len)
|
||||
{
|
||||
if (key == NULL || len < 1)
|
||||
return PXE_ARGUMENT_ERROR;
|
||||
|
Reference in New Issue
Block a user