1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00
gnupg/common
Werner Koch 1ddf5b846f
common: New function rfctimestamp.
* common/gettime.c (rfctimestamp): New.
--

It is surprisingly hard to create an RFC-2822 compliant Date value.
The problem is that strftime uses the current locale but the RFC
requires that the English names are used.  This code is pretty simply
and avoid the extra problem of figuring out the correct timezone;
instead UTC is used.  For the planned use case this is anyway better.

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-06-28 15:53:59 +02:00
..
agent-opt.c agent: Move a typedef to common and provide parse_pinentry_mode. 2013-02-06 12:56:19 +01:00
argparse.c common: Print https URLs in help messages. 2016-05-03 15:55:08 +02:00
argparse.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
asshelp.c common: New function gnupg_socketdir. 2016-06-07 13:48:46 +02:00
asshelp.h common: Remove homedir arg from start_new_{dirmngr,gpg_agent}. 2016-06-07 13:09:00 +02:00
asshelp2.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
audit.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
audit.h Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
b64dec.c common: Fix possible small memory leak in b64dec.c. 2016-06-23 20:01:15 +02:00
b64enc.c common: Change license of b64dec.c and b64enc.c to LGPLv2.1+ 2016-06-23 09:38:12 +02:00
call-gpg.c common: Extend gnupg_create_inbound_pipe et al. 2016-05-27 15:41:55 +02:00
call-gpg.h common: New file fwddecl.h. 2015-12-21 11:37:21 +01:00
ccparray.c common: Add simple dynamic array function. 2016-05-24 15:43:16 +02:00
ccparray.h common: Add simple dynamic array function. 2016-05-24 15:43:16 +02:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
ChangeLog-2011.include include: Remove this directory. 2014-01-29 17:45:05 +01:00
ChangeLog.jnlib common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
common-defs.h common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
convert.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
dotlock.c common: Make sure dotlock functions set a proper ERRNO. 2016-01-13 14:42:12 +01:00
dotlock.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
dynload.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
exaudit.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
exechelp-posix.c common: Close input stream. 2016-06-28 15:01:57 +02:00
exechelp-w32.c common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exechelp-w32ce.c common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exechelp.h common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exectool.c common: Fix copying data from the spawned child. 2016-06-28 14:38:35 +02:00
exectool.h common: Add a status callback to gnupg_exec_tool_stream. 2016-05-28 00:07:09 +02:00
exstatus.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
fwddecl.h common: New file fwddecl.h. 2015-12-21 11:37:21 +01:00
gc-opt-flags.h gpg: Add option --dirmngr-program. 2014-03-12 18:35:36 +01:00
get-passphrase.c common: Remove homedir arg from start_new_{dirmngr,gpg_agent}. 2016-06-07 13:09:00 +02:00
get-passphrase.h common: Remove homedir arg from start_new_{dirmngr,gpg_agent}. 2016-06-07 13:09:00 +02:00
gettime.c common: New function rfctimestamp. 2016-06-28 15:53:59 +02:00
gettime.h common: New function rfctimestamp. 2016-06-28 15:53:59 +02:00
gnupg.ico w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgrlhelp.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
helpfile.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
homedir.c w32: Fix recent build regression. 2016-06-08 15:14:06 +02:00
host2net.h Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
i18n.c common,w32: Avoid unused var warning about msgcache. 2015-07-28 17:38:44 +02:00
i18n.h Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
init.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
init.h Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
iobuf.c gpg: Rename pop_filter to iobuf_pop_filter and export it. 2016-03-02 20:36:16 +01:00
iobuf.h gpg: Rename pop_filter to iobuf_pop_filter and export it. 2016-03-02 20:36:16 +01:00
isascii.c common: Change license of isascii.c to all-premissive, 2015-12-14 16:21:19 +01:00
keyserver.h common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
localename.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
logging.c common: Add comments on how to enable backtrace(). 2016-06-02 15:57:59 +02:00
logging.h common: Improve log_assert. 2016-04-29 11:04:04 +02:00
Makefile.am common: Rename private-keys.c to name-value.c 2016-06-23 11:55:46 +02:00
mapstrings.c Typo fix. 2015-03-17 09:18:23 +01:00
mbox-util.c common: Add function is_valid_mailbox_mem. 2015-03-20 15:40:09 +01:00
mbox-util.h common: Add function is_valid_mailbox_mem. 2015-03-20 15:40:09 +01:00
membuf.c common: New put_membuf_cb to replace static membuf_data_cb. 2016-01-08 06:33:27 +01:00
membuf.h common: New put_membuf_cb to replace static membuf_data_cb. 2016-01-08 06:33:27 +01:00
miscellaneous.c common: Use new function to print a failure of xtrymalloc. 2016-04-25 17:26:57 +02:00
mischelp.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
mischelp.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
mkdir_p.c common: Make sure tilde expansion works for the mkdir functions. 2015-10-20 12:17:46 +02:00
mkdir_p.h common: Prefix the mkdir functions with gnupg_. Make args const. 2015-10-16 16:40:40 +02:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
mkerrtok Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
mkstrtable.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
name-value.c common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
name-value.h common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
openpgp-oid.c common: New function openpgp_is_curve_supported. 2016-06-02 15:57:59 +02:00
openpgpdefs.h gpg: Add experimental support for an issuer fpr. 2016-06-20 23:59:18 +02:00
percent.c Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
README common: Update README. 2016-03-02 14:27:30 +01:00
server-help.c common: Consolidate Assuan server argument handling. 2016-03-02 14:14:33 +01:00
server-help.h common: Consolidate Assuan server argument handling. 2016-03-02 14:14:33 +01:00
session-env.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
session-env.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
sexp-parse.h doc: Note that the persistant passphrase format is unimplemented. 2016-04-12 14:38:44 +02:00
sexputil.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
shareddefs.h agent: Move a typedef to common and provide parse_pinentry_mode. 2013-02-06 12:56:19 +01:00
signal.c Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
simple-pwquery.c Some minor string changes and fixed a printf format. 2016-05-04 11:05:13 +02:00
simple-pwquery.h common: Remove two JNLIB_ macros (jnlib merge). 2015-04-24 16:10:15 +02:00
ssh-utils.c ssh: Fix fingerprint computation for EdDSA key. 2015-09-29 15:33:59 +09:00
ssh-utils.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
status.c common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
status.h gpg: New status code NOTATION_FLAGS. 2016-05-31 15:51:18 +02:00
stringhelp.c common: New function split_fields. 2016-06-11 12:09:48 +02:00
stringhelp.h common: New function split_fields. 2016-06-11 12:09:48 +02:00
strlist.c common: Use new function to print a failure of xtrymalloc. 2016-04-25 17:26:57 +02:00
strlist.h common: Add 'free_strlist_wipe' which wipes memory. 2016-04-21 14:38:53 +02:00
sysutils.c Explicitly restrict socket permissions. 2016-06-08 16:18:02 +02:00
sysutils.h agent: Sanitize permissions of the private key directory. 2016-04-20 15:02:37 +02:00
t-b64.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-ccparray.c common: Add simple dynamic array function. 2016-05-24 15:43:16 +02:00
t-convert.c common: Do not deref vars in tests after a fail(). 2016-01-06 08:31:38 +01:00
t-dotlock.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-exechelp.c tests: Silence output of some tests. 2016-05-03 11:26:06 +02:00
t-gettime.c common: Add new function isodate_human_to_tm 2015-04-10 13:09:37 +02:00
t-helpfile.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-iobuf.c common: Fix iobuf API of filter function for alignment. 2016-01-12 10:32:20 +09:00
t-mapstrings.c common: Do not deref vars in tests after a fail(). 2016-01-06 08:31:38 +01:00
t-mbox-util.c Move new mailbox.c source file to common/. 2015-02-25 11:43:50 +01:00
t-name-value.c common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
t-openpgp-oid.c gpg: Add --list-gcrypt-config and "curve" item for --list-config. 2015-03-10 15:35:30 +01:00
t-percent.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
t-session-env.c tests: Silence output of some tests. 2016-05-03 11:26:06 +02:00
t-sexputil.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
t-ssh-utils.c ssh: Fix fingerprint computation for EdDSA key. 2015-09-29 15:33:59 +09:00
t-stringhelp.c common: Fix bad printf format in t-stringhelp.c 2016-06-12 13:43:55 +02:00
t-strlist.c common: Add new function strlist_rev. 2015-11-06 11:03:50 +01:00
t-support.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
t-support.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
t-sysutils.c Remove use of gnulib (part 2) 2014-11-11 15:14:31 +01:00
t-timestuff.c common: Do not deref vars in tests after a fail(). 2016-01-06 08:31:38 +01:00
t-w32-reg.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
t-zb32.c common: Improve t-zb32 to be used for manual encoding. 2015-10-30 12:40:22 +01:00
tlv.c common: Avoid warnings about useless assignments. 2016-01-06 08:35:56 +01:00
tlv.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
ttyio.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
ttyio.h Change some keyedit functions to allow printing to arbitrary streams. 2014-03-27 12:59:55 +01:00
types.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
userids.c common: Avoid warnings about useless assignments. 2016-01-06 08:35:56 +01:00
userids.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
utf8conv.c w32: Replace libiconv DLL by iconv feature of libgpg-error. 2016-04-21 09:17:11 +02:00
utf8conv.h gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32 2016-01-26 09:53:42 +01:00
util.h Implement /run/user/UID/gnupg based sockets. 2016-06-08 13:59:28 +02:00
w32-afunix.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
w32-afunix.h Silence unused variable or parameter warnings. 2015-11-27 18:32:26 +01:00
w32-reg.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
w32help.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
w32info-rc.h.in Update copyright years. 2015-02-03 09:12:45 +01:00
xasprintf.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
xreadline.c Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
yesno.c common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
zb32.c common: Add missing header file for clarity. 2016-06-28 15:53:59 +02:00
zb32.h common: Add separate header for zb32.c. 2015-10-30 12:33:40 +01:00

Common functionality used by all modules of GnuPG.