From: Jeff Larson <thejefflarson@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: OpenSSL and MobileORG [9.0.9 (9.0.9-47-g404ac4-elpa @ /home/jeff/.emacs.d/.cask/25.2/elpa/org-20170717/)]
Date: Wed, 19 Jul 2017 13:04:31 -0700 [thread overview]
Message-ID: <87k234nqgg.fsf@gmail.com> (raw)
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
Hi!
I'm having trouble using org-mobile to sync my notes on ArchLinux. I use
the encryption option to sync with dropbox. I've tracked it down to a
change in openssl 1.1.0:
https://stackoverflow.com/questions/39637388/encryption-decryption-doesnt-work-well-between-two-different-openssl-versions
When I try to decrypt a file in my mobile inbox with:
openssl enc -d -aes-256-cbc -salt -in agendas.org
I get:
bad decrypt
140222661816192:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:535:
And my openssl version is:
OpenSSL 1.1.0f 25 May 2017
But this command, where I specify the hash algorithm with -md md5, works:
openssl enc -d -aes-256-cbc -md md5 -salt -in agendas.org
I think simplest change is that the encryption and decryption
commands in org-mobile.el need to add the '-md md5' option. So this line
for encryption:
http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=lisp/org-mobile.el;h=12e6c84b3ceac57561dbc366cc6043a52f9a772d;hb=HEAD#l696
and this one for decryption:
http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=lisp/org-mobile.el;h=12e6c84b3ceac57561dbc366cc6043a52f9a772d;hb=HEAD#l705
It might also be worthwhile to switch to sha256 in the future, but
that's a bigger change.
Thanks for org mode and mobile org, I just started using it and it has
been life changing.
--Jeff
Emacs : GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.16)
of 2017-07-15
Package: Org mode version 9.0.9 (9.0.9-47-g404ac4-elpa @ /home/jeff/.emacs.d/.cask/25.2/elpa/org-20170717/)
current state:
==============
(setq
org-journal-mode-hook '(#[nil "\301\b\302\303\304$\207"
[org-journal-encrypt-on org-add-hook
org-journal-encryption-hook nil t]
5]
(lambda nil
(org-add-hook org-journal-encrypt-on
(quote org-journal-encryption-hook) nil t)
)
)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-ellipsis " "
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-log-done 'time
org-confirm-shell-link-function 'yes-or-no-p
org-support-shift-select t
org-default-notes-file "~/SpiderOak Hive/org/notes.org"
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mobile-encryption-password "[REDACTED]"
org-log-redeadline 'note
org-mode-hook '(#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-show-block-all append
local]
5]
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-babel-show-result-all
append local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes
org-journal-update-auto-mode-alist)
org-refile-targets '((org-agenda-files :maxlevel . 6))
org-fontify-done-headline t
org-archive-hook '(org-attach-archive-delete-maybe)
org-directory "~/SpiderOak Hive/org"
org-enforce-todo-dependencies t
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-fontify-quote-and-verse-blocks t
org-log-refile 'time
org-journal-dir "~/SpiderOak Hive/journal/"
org-log-reschedule 'note
org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "WAITING" "|" "DONE"
"CANCELED")
)
org-modules '(org-mobile org-habit org-w3m org-bbdb org-bibtex org-docview
org-gnus org-info org-irc org-mhe org-rmail)
org-agenda-window-setup 'only-window
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-mobile-use-encryption t
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-link-parameters '(("id" :follow org-id-open)
("rmail" :follow org-rmail-open :store
org-rmail-store-link)
("mhe" :follow org-mhe-open :store org-mhe-store-link)
("irc" :follow org-irc-visit :store org-irc-store-link)
("info" :follow org-info-open :export org-info-export
:store org-info-store-link)
("gnus" :follow org-gnus-open :store
org-gnus-store-link)
("docview" :follow org-docview-open :export
org-docview-export :store org-docview-store-link)
("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete org-bbdb-complete-link :store
org-bbdb-store-link)
("w3m" :store org-w3m-store-link)
("mu4e" :follow org-mu4e-open :store
org-mu4e-store-link)
("file+sys") ("file+emacs")
("doi" :follow org--open-doi-link)
("elisp" :follow org--open-elisp-link)
("file" :complete org-file-complete-link)
("ftp" :follow
(lambda (path) (browse-url (concat "ftp:" path))))
("help" :follow org--open-help-link)
("http" :follow
(lambda (path) (browse-url (concat "http:" path))))
("https" :follow
(lambda (path) (browse-url (concat "https:" path))))
("mailto" :follow
(lambda (path) (browse-url (concat "mailto:" path))))
("message" :follow
(lambda (path) (browse-url (concat "message:" path))))
("news" :follow
(lambda (path) (browse-url (concat "news:" path))))
("shell" :follow org--open-shell-link))
org-mobile-directory "~/Dropbox/Apps/MobileOrg"
org-reveal-start-hook '(org-decrypt-entry)
org-fontify-whole-heading-line t
org-agenda-files '("~/SpiderOak Hive/org/work.org"
"~/SpiderOak Hive/org/family.org")
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-mobile-inbox-for-pull "~/SpiderOak Hive/org/notes.org"
org-tag-alist '((:startgroup) ("@work" . 119) ("@home" . 104) (:endgroup)
("phone" . 112) ("meeting" . 109) ("code" . 99)
("writing" . 114))
)
next reply other threads:[~2017-07-19 20:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 20:04 Jeff Larson [this message]
2017-07-23 11:40 ` Bug: OpenSSL and MobileORG [9.0.9 (9.0.9-47-g404ac4-elpa @ /home/jeff/.emacs.d/.cask/25.2/elpa/org-20170717/)] Nicolas Goaziou
2017-07-25 1:29 ` [PATCH] Specify the message digest for the OpenSSL commands for org-mobile Jeff Larson
2017-07-25 7:10 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k234nqgg.fsf@gmail.com \
--to=thejefflarson@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).