Comments (5)
I think this seems like a reasonable feature to have.
from gmime.
unwrap, extricate, extract, or unseal... I was thinking unencapsulate but apparently that's not a word ;-) It's also kinda long...
I'm leaning toward unwrap or extract. Internally I've used the word extract in some comments.
I was thinking of adding a GMimeVerifyFlags, but then I'd have to return NULL for the GMimeSignatureList which is the same as the value returned on error, so that feels like a bad API.
Unfortunately, adding a new virtual method on GMimeCryptoContext would break API/ABI, so this would be a good candidate for a GMime v4.0 API.
from gmime.
I prefer unwrap
over extract
, i think, but i'd be happy with either.
As for the API/ABI break, i think i'm a bit confused:
adding a new value for GMimeVerifyFlags seems like it would be a subtle API/ABI break itself (see #71).
I was unaware that adding a new virtual method breaks API! is that code really part of the practical API/ABI surface? Is the idea that some other GMimeCryptoContext implementation out there might break because it can't fulfill that API? Do we know of other GMimeCryptoContext implementations?
Also: PKCS#7 SignedData will only ever be handled by GMimeApplicationPkcs7Mime objects, not by generic GMimeCryptoContext -- does it need to use the CryptoContext at all?
from gmime.
Adding new VerifyFlags doesn't break API/ABI.
Adding a new virtual method breaks ABI because the struct size changes.
Balsa implements their own GMimeCryptoContext subclasses (or used to). I hope they don't find the need to anymore now that GMime uses GpgME.
GMimeApplicationPkcs7Mime uses GMimeCryptoContext to do encryption/decryption/signing/verifying/etc and should also use it to unwrap the signed-data since it would use GpgME to do so. The point of GMimeCryptoContext is to allow consumers of GMime to plug in their own crypto backend (which, admittedly, is less needed now that GMime uses GpgME... but it's there for historical reasons).
from gmime.
When i say that a new VerifyFlag breaks API, I'm using "API" as a description of the semantic behavior of a piece of software with respect to its stated programming interface.
While a new VerifyFlag doesn't change the structure of the API, it does change the semantics, particularly when that flag is supplied.
#71 describes why a new flag might subtly alter the programmer's expectation of the interface, which is an API break (although one not detectable by standard API verification techniques).
Anyway, if this can't be done without a API or ABI break, so be it :) -- i just wanted to explore the range of options we have available.
from gmime.
Related Issues (20)
- internet_address_list_append_parse is a visible symbol, but not exposed via <gmime/internet-address.h> HOT 1
- v3.2.13 changes the behavior of `g_mime_message_get_addresses` when more than one `Cc` header exists. HOT 4
- gmime-format-options.h: bad <a> HOT 3
- Wrong decoding of consecutive B-encoded words
- g_mime_message_set_date() and g_mime_message_get_date() and g_mime_utils_header_decode_date() fail for TAI timezone HOT 11
- Manual link in README is broken HOT 3
- No new releases via gnome.org? HOT 6
- Processing of “chunked” Base64 encoded (typically Malware) parts HOT 6
- gmime 3.x release? HOT 2
- GMime.RfcComplianceMode.LOOSE does not allow square bracets in email address HOT 10
- Issue about calling g_mime_utils_header_decode_text somewhere HOT 4
- 3.2.14: build fails HOT 12
- Memory leak in function address_parse
- GLib-CRITICAL **: 22:58:34.070: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed HOT 4
- critical error parsing rfc822 message HOT 3
- Handling for long Newsgroups: headers seems suboptimal HOT 5
- Can't copy message from stream to a buffer HOT 1
- Remove dead links to https://developer-old.gnome.org/gmime/ HOT 1
- Infinity loop in g_mime_multipart_get_boundary HOT 5
- new minor point release? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmime.