Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Alter the API of Salmon related functions #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akihikodaki
Copy link

This commit has the following significant changes for the API

  • Rename symbols with the name the specification uses.
  • Introduce MagicEnvelope object in favor of reuse of parsed information and simplicity.
  • Add a method to decode magic public key.

Question

I interpreted the intension of having magic_key_to_pem instead of a method just returning OpenSSL::PKey::RSA as it is expected to prevent from depending on the API of OpenSSL::PKey::RSA. However, the old OStatus2::Salmon::verify actually depends on it.
Can the API of OStatus2 depend on the API of OpenSSL::PKey::RSA, or should it not?

This commit has the following significant changes for the API
* Rename symbols with the name the specification uses.
* Introduce MagicEnvelope object in favor of reuse of parsed information
  and simplicity.
* Add a method to decode magic public key.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant