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

Nitpicks #589

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Nitpicks #589

merged 3 commits into from
Oct 12, 2023

Conversation

gperciva
Copy link
Member

No description provided.

Reported by:	clang-16
Also, fix the alphabetical order of headers in tar/storage/storage_read_cache.h.

../keygen/keygen_network.c should add these lines:
  #include "crypto.h"        // for crypto_hash_data, crypto_hash_data_...

../lib/crypto/crypto_compat.c should add these lines:
  #include <openssl/crypto.h>    // for CRYPTO_cleanup_all_ex_data

../tar/chunks/chunks_write.c should add these lines:
  #include "storage.h"       // for storage_write_file, STORAGE_W

../tar/multitape/multitape_metadata.c should add these lines:
  #include "chunks.h"        // for CHUNKS_S, chunks_delete_extrastats

../tar/multitape/multitape_metaindex.c should add these lines:
  #include "chunks.h"        // for chunks_delete_extrastats, chunks_st...
  #include "storage.h"       // for storage_delete_file, storage_read_file

../tar/multitape/multitape_recover.c should add these lines:
  #include "storage.h"       // for storage_transaction_commitfromcheckp...

../tar/storage/storage_delete.c should add these lines:
  #include "tsnetwork.h"     // for network_select, NETWORK_STATUS_OK

../tar/storage/storage_directory.c should add these lines:
  #include "tsnetwork.h"     // for network_spin, NETWORK_STATUS_OK

../tar/storage/storage_read.c should add these lines:
  #include "tsnetwork.h"     // for network_spin, NETWORK_STATUS_OK

../tar/storage/storage_read_cache.c should add these lines:
  #include "storage.h"       // for timeval

../tar/storage/storage_transaction.c should add these lines:
  #include "tsnetwork.h"     // for network_spin, NETWORK_STATUS_OK

../tar/storage/storage_write.c should add these lines:
  #include "tsnetwork.h"     // for network_select, network_spin, NETWORK_...

Reported by:	include-what-you-use 0.20
@@ -93,7 +93,8 @@ int crypto_file_init_keys(void);

/**
* crypto_MGF1(seed, seedlen, buf, buflen):
* The MGF1 mask generation function, as specified in RFC 3447.
* The MGF1 mask generation function, as specified in RFC 3447 section B.2.1,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had this change laying around for over a year, but it never seemed important enough to include it in a PR.

I forget why I was looking up the details of it, but when I found the right section, it occurred to me that being a bit more specific in the API comment would have saved me some time.
https://datatracker.ietf.org/doc/html/rfc3447#appendix-B.2.1

@cperciva cperciva merged commit fe5d8e8 into master Oct 12, 2023
2 checks passed
@gperciva gperciva deleted the nitpicks branch October 12, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants