Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge our current version of the code with the OSS libsecutils. #27

Closed

Conversation

martin-barta-sie
Copy link
Contributor

@martin-barta-sie martin-barta-sie commented Jul 15, 2022

This is our attempt to once and for all unify our fork with the OSS code base. From this release onward, any potential future changes/updates will be directly contributed here.

Overview of Changes

API changes:

  • functions for checking only against local CRLs added
  • more generic functions for calculating/checking ICV added
  • some functions moved to appropriate module (to util.h)

Internal changes:

  • loading of credentials (.p12 containers):
    • containers with empty password are rejected if a nonempty
      password is provided as parameter (i.e. the empty password can no longer
      be used to circumvent UTA-protection)
    • containers that don't have private keys encrypted with the same algorithm
      that is used by "storage" functions (e.g. CREDENTIALS_save_dv) are
      rejected
  • default log level changed to LOG_WARNING (should have minimal impact as
    most logs state the level explicitly)

Other changes:

  • some includes fixed
  • various compiler warnings fixed

@martin-barta-sie
Copy link
Contributor Author

@DDvO @benjamin-schilling could you, please, review this and then merge it? If you have any comments, or you find any issues, let me know. Thanks

@martin-barta-sie martin-barta-sie changed the title Merge current S2L2 Linux version of the code with the OSS libsecutils. Merge our current version of the code with the OSS libsecutils. Jul 15, 2022
(reflects securityUtilities b009f9d5)

API changes:

- functions for checking only against local CRLs added
- more generic functions for calculating/checking ICV added
- some functions moved to appropriate module (to util.h)

Internal changes:

- loading of credentials (.p12 containers):
    - containers with **empty password** are **rejected** if a nonempty
      password is provided as parameter (i.e. the empty password can no longer
      be used to circumvent UTA-protection)
    - containers that don't have private keys encrypted with the same algorithm
      that is used by "storage" functions (e.g. `CREDENTIALS_save_dv`) are
      **rejected**
- default log level changed to `LOG_WARNING` (should have minimal impact as
  most logs state the level explicitly)

Other changes:

- some includes fixed
- various compiler warnings fixed
@DDvO
Copy link
Member

DDvO commented Jul 20, 2022

The changelog sounds good, but it is quite a lot of stuff at once, mixed into a monolithic commit and PR.
Would be much better to digest if it was structured into several PRs, each focusing on one topic.

@martin-barta-sie
Copy link
Contributor Author

OK, I will try to split it into smaller ones

@martin-barta-sie
Copy link
Contributor Author

martin-barta-sie commented Aug 15, 2022

@DDvO I've split it up into the following pull requests. Sorry it took so long, but I wanted to wait until we ironed out all the issues we found when integrating this in our projects. I will close this request as it's not needed anymore.

Less important:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants