Commit Graph

5764 Commits (master)

Author SHA1 Message Date
positron e34c865baf log: add a separate log level for SQL 2023-09-06 17:49:15 +02:00
positron 9931ee64c4 PEP_ENGINE_VERSION_LONG: add protocol version as well 2023-09-06 17:49:11 +02:00
positron 97129aa524 add trailing "+" sign to version after 3.3.0-RC14, prepend an empty line to NEWS 2023-08-29 17:14:40 +02:00
positron 7ec672c264 set version to 3.3.0-RC14 2023-08-29 17:14:40 +02:00
positron 4c7a34f1a7 NEWS 2023-08-29 17:13:41 +02:00
positron d459048ae2 Merge pull request 'Build: Add flexibility and consistency / fix: libasn1.a - no install/uninstall targets.' (#182) from pep4tb_deploy_macos into master
Reviewed-on: #182
2023-08-29 17:09:56 +02:00
heck 349fa99821 Build: asn.1 - add install / uninstall
libasn1.a is required for deployment builds. All libs should generally be installed.
2023-08-29 17:01:05 +02:00
heck 567cc324c9 Build: add pEp wide build config concept.
BUILD_CONF must be specified relative to the repo root or must be an absolute path.
BUILD_CONF defaults to ./build.conf
2023-08-29 17:01:05 +02:00
heck 695d74d6f1 Build: Rename local.conf to build.conf globally 2023-08-29 17:01:05 +02:00
heck c93175c904 Build: pEp wide consistent Makefiles - add env var BUILD_CONF / change local.conf to build.conf 2023-08-29 17:01:05 +02:00
positron b9d0ff8008 add trailing "+" sign to version after 3.3.0-RC13, prepend an empty line to NEWS 2023-07-24 12:52:14 +02:00
positron f27c4f8520 set version to 3.3.0-RC13 2023-07-24 12:52:14 +02:00
positron c8d92852ca encrypt_message: re-add an own-ness (not ownership) requirement
Re-implement the same logic as the previous replacement for is_me ia a new
separate function used by encrypt_message, so that we no longer weaken the fix
for #170 .
2023-07-19 17:08:12 +02:00
positron a648c12ea1 give up on changing is_me: revert to its original definition
Go back to the original counter-intuitive definition of is_me, which is used in
many places which apparently depend on its behaviour.  Only leave a comment
explaining the dangers of it.

This change is likely to weaken the fix for
#170 .  Preventing
the user from calling encrypt_message with a non-own From is a burden on
applications, which I dislike.  I made p-m-t very defensive in this sense
because I knew the problem, but other application writers may be lax and
therefore fall into #170.  The current checks based on the counter-intuitive
is_me might not cover every possible case.
2023-07-19 16:24:04 +02:00
positron 9ecbfdda43 echo: remove useless function. Factor. Do not send ping or pong messages to own identities 2023-07-19 14:43:05 +02:00
positron 7508dcf55f add trailing "+" sign to version after 3.3.0-RC12, prepend an empty line to NEWS 2023-07-18 19:41:12 +02:00
positron ae0b76cb59 set version to 3.3.0-RC12 2023-07-18 19:41:12 +02:00
positron a3b4796e25 fix bug in fix for #168 . Yes, again 2023-07-18 19:40:55 +02:00
positron 794fa2e8d7 add trailing "+" sign to version after 3.3.0-RC11, prepend an empty line to NEWS 2023-07-18 18:28:42 +02:00
positron a41b6b8af2 set version to 3.3.0-RC11 2023-07-18 18:28:42 +02:00
positron 77c60cfe04 fix bug in fix for #168 2023-07-18 18:21:36 +02:00
positron 577bbeefe3 string_to_rating: add missing case 2023-07-18 17:49:45 +02:00
positron f98942d48e add trailing "+" sign to version after 3.3.0-RC10, prepend an empty line to NEWS 2023-07-13 17:03:20 +02:00
positron ecfd1c7c5e set version to 3.3.0-RC10 2023-07-13 17:03:20 +02:00
positron c05cce358b make echo_api.h easy to #include from adapters and not only from the Engine itself 2023-07-13 17:03:13 +02:00
positron 1f6c9fc6bb add trailing "+" sign to version after 3.3.0-RC9, prepend an empty line to NEWS 2023-07-13 15:36:25 +02:00
positron 27ee04ab9e set version to 3.3.0-RC9 2023-07-13 15:36:25 +02:00
positron 60c0ee8fc8 make send_ping an API function 2023-07-13 15:32:00 +02:00
positron d50278d389 add trailing "+" sign to version after 3.3.0-RC8, prepend an empty line to NEWS 2023-07-10 14:40:20 +02:00
positron c6d87690ec set version to 3.3.0-RC8 2023-07-10 14:40:20 +02:00
positron fb8b668d8b Fix #176 2023-07-09 15:30:38 +02:00
positron 083f68c05b fix #175
timegm_with_gmtoff: do not read again from the struct that timegm has just
overwritten: since we worked on a copy we still have the original to read from.

I have some difficulty understanding why timegm modifies the struct it receives
in the first place; however who wrote the original code in timegm_with_gmtoff
clearly knew or noticed, since the code first copies the struct, then passes
a pointer to the copy.  However, by mistake, the copy is read again after the

Easy fix, resolving a quite enigmatic bug:
Closes #175
2023-07-09 03:42:47 +02:00
positron 5098c4f825 change is_me to respect what I believe to be the intended semantics...
...even if that semantics is very ugly and error-prone.  In practice we want
is_me to return true when the identity is *known* to be own, false when it it
*not known* to be own, while also accepting very incomplete identities; for
example with a user id but no address.

A lot of existing code in the Engine seems to be relying on this lax behaviour,
therefore I am restoring it, and documenting it in a comment.
2023-07-07 17:43:18 +02:00
positron 9986f798b2 add trailing "+" sign to version after 3.3.0-RC7, prepend an empty line to NEWS 2023-06-23 08:01:20 +02:00
positron 9cff609546 set version to 3.3.0-RC7 2023-06-23 08:01:20 +02:00
positron 8137e7f5dc new API functions (temporary): stringpair_list_delete_by_key_possibly_case_sensitive, stringpair_list_delete_by_key, stringpair_list_delete_by_key_case_insensitive 2023-06-23 07:54:34 +02:00
positron 59b3da22e6 add trailing "+" sign to version after 3.3.0-RC6, prepend an empty line to NEWS 2023-06-22 17:45:31 +02:00
positron 64356bf051 set version to 3.3.0-RC6 2023-06-22 17:45:31 +02:00
positron d4ec3ffdb6 make is_me more precise, which is now needed to actually fix #170 2023-06-20 17:57:15 +02:00
positron 3e13e562cb refuse to encrypt or compute output rating unless the From identity is own
This closes #170.
2023-06-20 16:14:47 +02:00
positron acdaff650a add API functions message_remove_opt_field, message_set_opt_field 2023-06-20 16:14:47 +02:00
positron 076d39a897 add trailing "+" sign to version after 3.3.0-RC5, prepend an empty line to NEWS 2023-06-12 13:09:16 +02:00
positron 88ce7bdbbb set version to 3.3.0-RC5 2023-06-12 13:09:16 +02:00
positron 37737243cb NEWS 2023-06-07 14:42:59 +02:00
positron 75fd05d3c7 append_string: fix potentially serious pointer bug in utility function 2023-06-07 14:42:29 +02:00
positron 4538d7fccd add trailing "+" sign to version after 3.3.0-RC4, prepend an empty line to NEWS 2023-05-26 11:12:03 +02:00
positron 0a3bbd18c2 set version to 3.3.0-RC4 2023-05-26 11:12:03 +02:00
positron 1b95f9f473 _update_identity: update (or myself) every identity involved in a message. This was apparently required but not done
This closes #168 .
2023-05-25 15:59:39 +02:00
positron 1ab98ac222 DEPENDENCIES: use YML 2.7.6 2023-05-25 12:56:04 +02:00
positron c36dd7589e README: rephrase 2023-05-22 12:54:44 +02:00