Private classes and members #208
Replies: 6 comments
-
ObjectivePGP provides higher level API. The private API you mention is not intended to be used directly - it's too easy to misuse. If you're missing some functionality, it should be build on top of that. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. I'm sure it's low-level stuff, but the problem is that at the actual state, the public API is equivalent to a prehistoric version of gpg.
Point 4 should already be covered (isn't it?), I'm not totally sure though. Points 1 through 3 can be achieved by exposing some private stuff. While I can agree that point 2 is very low-level (I'm afraid I need that too though), points 1 and 3 are operations available with the current GPG/gpgme library. |
Beta Was this translation helpful? Give feedback.
-
I disagree with "prehistoric version" part. First of all, it's OpenPGP as standarized, second of, GPG has extensions that are not necessary yet standarized. That said.
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry I didn't mean it in a offending way. I was just comparing your public API with gpgme. But of course there are also extensions as you say.
IMHO PGPKeyGenerator should include something to let the user decide about subkeys. I'll see what I can do in terms of a PR - no promises though.
I need to use the raw private key data to convert the authentication private key to an OpenSSL private key (for use in a X.509 certificate).
The above private key extraction should happen on-the-fly, therefore, when loading the PGP keyring from storage, I need to extract the subkey with the authentication flag set.
Indeed :-) |
Beta Was this translation helpful? Give feedback.
-
@daniele-athome did you start any work on this? |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry for the late reply. We started to test something out with @acappelli, but I stopped following it directly a few days later. And I believe he actually got busy elsewhere. Sorry... |
Beta Was this translation helpful? Give feedback.
-
I noticed that many classes and members are not available for use, including for example:
Specifically I need to check some low level stuff in my keys.
I don't understand if I'm doing something wrong, but I can't access many classes unless I recompile your library to expose .h files (move them from the private section to the public section).
If I'm correct, why hide so many things? Why not expose everything, your API is so useful and nice.
Thanks and sorry for bothering you with such nuances.
Beta Was this translation helpful? Give feedback.
All reactions