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

Conditionally compile support for loading CA files. #2112

Merged
merged 1 commit into from Oct 26, 2023

Conversation

bbockelm
Copy link
Contributor

The scitoken_config_set_str function was only recently added to the SciTokens library; some supported platforms do not plan on taking the updated version.

Accordingly, add a CMake-level test to see if the symbol exists and only then make the call to the library.

@amadio - it's been a long time since I've done anything non-trivial with cmake. Please double-check you're happy with my approach.

The `scitoken_config_set_str` function was only recently added to the
SciTokens library; some supported platforms do not plan on taking the
updated version.

Accordingly, add a CMake-level test to see if the symbol exists and
only then make the call to the library.
@amadio
Copy link
Member

amadio commented Oct 24, 2023

Looks good. I thought scitokens would export a version which we could use to decide, but this works too. I will check tomorrow with my new CI and merge if all goes well. Thank you!

@amadio amadio added this to the 5.7.0 milestone Oct 26, 2023
@amadio
Copy link
Member

amadio commented Oct 26, 2023

Thanks! This works well.

@amadio amadio merged commit b6aa78a into xrootd:devel Oct 26, 2023
14 checks passed
@amadio amadio modified the milestones: 5.7.0, 5.6.3 Oct 27, 2023
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.

None yet

2 participants