Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send and retrieve encrypted files when using OMEMO #1375

Merged
merged 31 commits into from
Dec 9, 2020

Conversation

wstrm
Copy link
Contributor

@wstrm wstrm commented Jun 27, 2020

Fixes: #1262

@jubalh jubalh added this to the 0.10.0 milestone Jun 27, 2020
@jubalh jubalh added the feature label Jun 27, 2020
@wstrm wstrm force-pushed the feature/omemo-sendfile branch 3 times, most recently from af79e3b to 0476ddc Compare July 21, 2020 09:51
@Neustradamus
Copy link

@wstrm: Have you progressed on it?

@wstrm
Copy link
Contributor Author

wstrm commented Nov 16, 2020

@wstrm: Have you progressed on it?

No, not lately. Hopefully I'll get back to it soon.

@wstrm wstrm self-assigned this Nov 16, 2020
src/config/preferences.c Outdated Show resolved Hide resolved
@wstrm wstrm marked this pull request as ready for review December 7, 2020 14:58
@wstrm
Copy link
Contributor Author

wstrm commented Dec 7, 2020

@jubalh Show no mercy

Copy link
Member

@jubalh jubalh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments in code plus:

  • Where do you use omemo_free()
  • You added two empty files: src/tools/aesgcm_upload.c src/tools/aesgcm_upload.h

"/omemo trust c4f9c875-144d7a3b-0c4a05b6-ca3be51a-a037f329-0bd3ae62-07f99719-55559d2a",
"/omemo untrust loki@valhalla.edda c4f9c875-144d7a3b-0c4a05b6-ca3be51a-a037f329-0bd3ae62-07f99719-55559d2a",
"/omemo char *")
parse_args, 1, 3, NULL,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation got changed here. I know.. its a bit of a problem because we don't use default here.. :-/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shouldn't do something here, right? :)

src/command/cmd_funcs.h Outdated Show resolved Hide resolved
src/omemo/omemo.h Outdated Show resolved Hide resolved
src/ui/console.c Outdated Show resolved Hide resolved
@wstrm wstrm requested a review from jubalh December 7, 2020 15:51
@jubalh
Copy link
Member

jubalh commented Dec 7, 2020

I like a lot what you did to http upload!

Some more reviewing:

/executable prints:

17:31:01 - Default '/avatar open' command (/executable avatar)                      : xdg-open
17:31:01 - Default '/url open' command (/executable urlopen)                        : false;xdg-open %u;
17:31:01 - Default '/url save' command (/executable urlsave)                        : (null)

What happens when a user sets /executable urlsave aesgcm "omut -d -o %p %u" which is still mentioned in /help executable and later wants to go back to default?
/executable urlsave (<protocol>|DEF) <cmd> is also mentioned in /help executable but setting /executable urlsave DEF (null) won't work.

So first I think /help executable needs an update. And second we need a way to reset to default.

Copy link
Member

@jubalh jubalh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Except that you don't expand ~. So /url save https://profanity-im.github.io/faq.html ~/something will make trouble.

@jubalh jubalh merged commit 7a319df into profanity-im:master Dec 9, 2020
jubalh added a commit that referenced this pull request Dec 9, 2020
unique_filename_from_url() is used for `/url save`.
It doesn't recognize ~ by itself, we need to expand it first.

Mentioned in
#1375 (review)
jubalh added a commit that referenced this pull request Dec 9, 2020
#1375 added omemo media sharing support.

Thus the protection
(#1270) to sending files plainly in an omemo chat isn't
needed anymore and got removed.

Lets clean it from the config file.
@jubalh
Copy link
Member

jubalh commented Dec 9, 2020

I opened #1447 for the last comment.

@jubalh
Copy link
Member

jubalh commented Dec 9, 2020

@wstrm Thanks a lot for your work! This will be a nice christmas present for users!

@Neustradamus
Copy link

@wstrm: Thanks for your job in Profanity!

I am not sure if https://github.com/wstrm/omemo-utils is compatible with all OMEMO 0.3.0 clients:

  • "AES128_GCM_IV_LENGTH"
  • "AES128_GCM_KEY_LENGTH"
  • "AES128_GCM_TAG_LENGTH"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send and retrieve encrypted files when using OMEMO
3 participants