72f4f186da
merge: sync upstream profanity-im/profanity
...
CI Code / Check spelling (push) Successful in 18s
CI Code / Check coding style (push) Successful in 34s
CI Code / Code Coverage (push) Successful in 2m36s
CI Code / Linux (debian) (push) Successful in 4m41s
CI Code / Linux (ubuntu) (push) Successful in 4m52s
CI Code / Linux (arch) (push) Successful in 5m40s
Sync with upstream profanity-im/profanity.
Major upstream changes incorporated:
Memory management
- Replace malloc+memset with g_new0 throughout codebase
- Adopt auto_gchar / auto_gcharv / auto_gerror / auto_jid cleanup macros
- Replace free() with g_free() for GAlloc'd memory
Editor rewrite
- Remove pthread-based async editor; use GChildWatch callback API
- New launch_editor(initial_content, callback, user_data) interface
- Proper signal handling (SIGINT, SIGTSTP, SIGPIPE reset in child)
- ui_suspend()/ui_resume() integration for TTY management
OMEMO improvements
- Dual backend support: libsignal-protocol-c and libomemo-c
- Proper pre-key removal after use (XEP-0384 compliance)
- Automatic pre-key regeneration when store drops below threshold
- New functions: omemo_is_device_active(), omemo_is_jid_trusted()
- omemo_get_jid_untrusted_fingerprints() for better error messages
- Fingerprint notifications on new device identity discovery
- Deterministic pre-key ID generation tracking max_pre_key_id
- omemo_trust_changed() UI updates on trust state changes
JID validation
- RFC 6122-compliant validation in jid_is_valid()
- Character-level checks (RFC 6122 forbidden chars: & ' / : < > @)
- Length limits: 1023 per component, 3071 total
- New jid_is_valid_user_jid() for user vs. service JID distinction
Database
- Schema migration v3: UNIQUE constraint on archive_id for deduplication
- Triggers for corrected message tracking (replaces_db_id / replaced_by_db_id)
- db_history_result_t return type, _truncate_datetime_suffix()
UI / console
- win_warn_needed() / win_warn_sent() warning deduplication hash table
- PAD_MIN_HEIGHT dynamic pad sizing with PAD_THRESHOLD auto-cleanup
- Spellcheck integration in input field with Unicode word detection
- cons_spellcheck_setting() for /settings ui output
- /[command]? shortcut for command help
Account config
- Account name sanitization for GKeyFile special chars ([ ] = # \n \r)
- Replace popen() with g_spawn_sync() for eval_password
- TLS policy: add "direct" option alongside legacy
Connection
- Port validation with g_assert (0–65535)
- SHA-256 certificate fingerprint support (XMPP_CERT_PUBKEY_FINGERPRINT_SHA256)
- "direct" TLS policy alias for legacy SSL
Common utilities
- str_xml_sanitize() for XML 1.0 illegal character removal
- string_matches_one_of() with formatted error messages
- valid_tls_policy_option() helper
- prof_date_time_format_iso8601() utility
- Improved strip_arg_quotes() with backslash unescaping
- prof_occurrences() uses g_slist_prepend + reverse for performance
PGP / OX
- Proper GPGME resource cleanup with goto-cleanup pattern
- g_string_free(xmppuri) leak fix in _ox_key_lookup
CSV export
- Use GString + g_file_set_contents instead of raw write() syscalls
Tests
- Restructured into subdirectories: command/, config/, xmpp/, ui/, omemo/, otr/, pgp/
- New test_cmd_ac.c for autocompleter unit tests
- Updated stubs for new UI suspend/resume functions
License headers
- Migrate to SPDX-3.0 identifiers (GPL-3.0-or-later WITH OpenSSL-exception)
────────────────────────────────────────────────────
cproof-specific preservations:
- XEP-0308 LMC: replace_id ?: id logic in message/stanza/omemo
- Force encryption: cmd_force_encryption, test_forced_encryption
- CWE-134: format string protection (cons_show("%s", ...))
- y_start_pos-based paging in window.c
- db_history_result_t return type, _truncate_datetime_suffix()
Merge-time fixes:
- common.c: format-security (-Werror) — cons_show(errmsg) → cons_show("%s", errmsg)
- database.c: null-deref guard — !msg->timestamp → msg && !msg->timestamp
- console.c: implicit size_t → int cast — (int)(maxlen + 1)
- tlscerts.c: %d for size_t — %zu
Build system:
- Kept autotools (Makefile.am, configure.ac); upstream uses Meson
- Restored deleted files: bootstrap.sh, autogen.sh, ax_valgrind_check.m4, configure-debug
- Updated Makefile.am test paths for subdirectory structure
- Added test_cmd_ac, test_forced_encryption to test sources
Functional tests:
- Use cproof version; upstream requires stbbr_for_xmlns from updated stabber
- Not yet available in devs/stabber fork
Closes #64
Merge author: jabber.developer2
Commits authors:
Michael Vetter <jubalh@iodoru.org >
& Steffen Jaeckel <s@jaeckel.eu >
2026-05-26 17:48:14 +00:00
Michael Vetter
26ae74e392
Fix doap tag
...
Close https://github.com/profanity-im/profanity/issues/2036
2025-04-10 07:23:35 +02:00
Michael Vetter
07dfeec816
Release 0.15.0
2025-03-27 20:06:38 +01:00
Michael Vetter
02c33474fa
doap: add xep0373
2023-08-23 10:49:57 +02:00
Michael Vetter
2916b6e716
Add xep-0049 to doap
...
Found by @H3rnand3zzz.
2023-08-11 16:04:27 +02:00
Michael Vetter
fc65607f45
Add 0.14.0 release to doap and fix links
2023-08-04 08:37:54 +02:00
Michael Vetter
e83ed9205d
Update doap file DEV -> 0.14.0
2023-08-03 07:59:10 +02:00
Michael Vetter
c7c041a853
Add xep-0059 to doap
...
Implemented for MAM since
* https://github.com/profanity-im/profanity/pull/1417 (0.11.0)
* https://github.com/profanity-im/profanity/commit/f0202a2fe (DEV)
2023-07-18 16:43:54 +02:00
Michael Vetter
d43c3460cb
Add xep-0084 info to doap file
...
Downloading of avatars was added in
https://github.com/profanity-im/profanity/pull/1240
by me for 0.8.0.
Publishing avatars was added in
https://github.com/profanity-im/profanity/pull/1714
by @MarcoPolo-PasTonMolo for 0.13.0.
Disabling to publish avatar was added in
https://github.com/profanity-im/profanity/pull/1843
by ike08 for the next version.
A later improvement was done in
https://github.com/profanity-im/profanity/pull/1845
by me for the next version.
2023-07-03 17:37:18 +02:00
Michael Vetter
db40f78254
Add missing releases to doap file
2023-07-03 17:21:08 +02:00
Michael Vetter
a8c1a02447
Add xep-0313 info to doap file
...
Started in https://github.com/profanity-im/profanity/pull/1306
for 0.9.0 by me.
We mentioned that it was experimental.
Later heavily improved in
https://github.com/profanity-im/profanity/pull/1724
for upcoming version by MarcoPolo-PasTonMolo.
MUC MAM is in development at:
https://github.com/profanity-im/profanity/pull/1862
Tracking issue: https://github.com/profanity-im/profanity/issues/660
2023-07-03 17:15:18 +02:00
Michael Vetter
9c7a27abd4
Add xep-0054 info to doap file
...
Implemented for next release in
https://github.com/profanity-im/profanity/pull/1757
by @techmetx11.
2023-07-03 17:11:43 +02:00
Michael Vetter
c76978bea7
Add xep-0198 to doap
2022-09-06 17:10:06 +02:00
Kim Alvefur
96d53290fd
doap: fix missing foaf namespace prefix
2022-08-04 10:27:42 +02:00
Michael Vetter
7cb045fce7
doap: use more recent screenshot
2022-06-16 10:36:46 +02:00
Michael Vetter
c5838d01be
doap: add logo
2022-06-16 10:36:20 +02:00
Michael Vetter
19e1fc6552
doap: add repo
2022-06-16 10:32:41 +02:00
Michael Vetter
2c3e2f7be5
doap: add maintainer
2022-06-16 10:30:42 +02:00
Michael Vetter
f7fde674b0
doap: Add latest releases
2022-06-16 10:26:15 +02:00
Daniel Brötzmann
c987d88e83
DOAP: Use correct namespace for xmlns:schema
2022-05-09 20:42:43 +02:00
Michael Vetter
9eee52d14c
Correct omemo xep number in doap file
2022-03-07 19:40:08 +01:00
Michael Vetter
dc0b4b5ecf
XEP-0453: add Windows
2022-02-22 15:24:14 +01:00
Michael Vetter
839d0c52fa
XEP-0453: Update supported xeps
...
To the best of my knowledge.
Information from:
* https://profanity-im.github.io/xeps.html
* changelog
2022-02-22 15:15:22 +01:00
Stefan Kropp
bd8c32cc1e
XEP-0453: DOAP usage in XMPP
...
Add a basic doap file.
Information taken from https://profanity-im.github.io/xeps.html .
For the most XEPs I added 'partial' as status. We should check
the status and add a note.
2022-02-22 14:41:49 +01:00