mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[PR #415] [MERGED] Add signature file for VBA projects (2nd try) #488
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jmcnamara/libxlsxwriter/pull/415
Author: @HolgiHo
Created: 9/18/2023
Status: ✅ Merged
Merged: 9/20/2023
Merged by: @jmcnamara
Base:
main← Head:add_vba_signature📝 Commits (3)
1d80620add support for adding VBA project signatures:a744934- replace workbook_add_vba_project_signature by workbook_add_signed_vba_project accepting VBA project file plus signature filea733212- packager: add signature specific files/contents if workbook->vba_project_signature is set📊 Changes
9 files changed (+212 additions, -5 deletions)
View changed files
📝
docs/src/working_with_macros.dox(+25 -0)📝
include/xlsxwriter/workbook.h(+31 -1)📝
src/packager.c(+85 -2)📝
src/workbook.c(+38 -2)➕
test/functional/src/images/vbaProject05.bin(+0 -0)➕
test/functional/src/images/vbaProject05Signature.bin(+0 -0)➕
test/functional/src/test_macro04.c(+30 -0)📝
test/functional/test_vba.py(+3 -0)➕
test/functional/xlsx_files/macro04.xlsm(+0 -0)📄 Description
PR for issue #411, 2nd try.
Library changes:
workbook: new API functionworkbook_add_vba_project_signaturepackager: copyvbaProjectSignature.bin, createvbaProject.bin.relsTests:
test_macro_signedExamples:
examples/macro_signed.cexamples/vbaProject.bin: Was corrupted; now the button press works again; VBA project is signed by "VBA Code Signing"examples/vbaProjectSignature.bin: The digitial signature, based on "VBA Code Signing" certificateUtilities for testing the VBA project is signed correctly:
dev/vba_code_signingcontaining:certificate.pfxthat was used to sign the VBA project file. This certificate is self-signed and only for testing purposes. The password for the private key is "xlsxwriter". In reality, you would obtain a code signing certificate from an offical Certificate Authority. This process is usually quite complex and expensive.import_certificate.ps1to installcertificate.pfxon your computer to test the example VBA project is actually signed in Excel.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.