Re: pgcrypto: PGP signatures - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: pgcrypto: PGP signatures
Date
Msg-id 540B25C5.3020104@joh.to
Whole thread Raw
In response to Re: pgcrypto: PGP signatures  (Marko Tiikkaja <marko@joh.to>)
List pgsql-hackers
On 2014-09-05 1:38 PM, I wrote:
>     3) I've changed the code to use ntohl() and pg_time_t as per Thomas'
> comments.

> sig->creation_time = ntohl(*((uint32_t *) creation_time));

This is probably a horrible idea due to strict aliasing rules and 
alignment, though.  I think I'll just hide the bit shifts behind a 
function instead.



.marko



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: A mechanism securing web applications in DBMS
Next
From: Bruce Momjian
Date:
Subject: Re: btree_gist macaddr valgrind woes