Skip to content
Discussion options

You must be logged in to vote

Yes, you can wrap your streaming encryption via zip_source_function() and use this source to add it to the archive. You will need to implement the commands ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, ZIP_SOURCE_CLOSE, ZIP_SOURCE_STAT, ZIP_SOURCE_ERROR, and ZIP_SOURCE_FREE.

For ZIP_SOURCE_STAT, you can simply return 0 if you don't want to provide any information.

Unfortunately we don't have a good example for creating a custom source yet, but by looking at the documentation and source code, you should be able to figure it out. If you have questions, feel free to follow up here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haide-biz
Comment options

Answer selected by haide-biz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants