cccolutils

Crates.iocccolutils
lib.rscccolutils
version0.2.2
sourcesrc
created_at2019-03-18 10:48:54.296053
updated_at2024-04-07 19:22:00.173122
descriptionKerberos5 Credential Cache Collection Utilities
homepage
repositoryhttps://github.com/ironthree/cccolutils-rs
max_upload_size
id122242
size24,216
Fabio Valentini (decathorpe)

documentation

README

Kerberos 5 Credentials Cache Collection Utilities (DEPRECATED)

crates.io crates.io crates.io docs.rs

WARNING: This crate is no longer actively maintained.

This package is a rough rust port of the cccolutils python package.

The C part is inspired by the CPython extension from this python package, with some adaptations and fixes for all the memory leaks I could find (using valgrind with a small C test program, and the leak sanitizer from nightly rust for the rust code).

The available API is currently limited to the following three functions:

  • fn get_username_for_realm(realm: String) -> Result<Option<String>, String>: determine the username of the authenticated user for a given realm
  • fn has_credentials() -> bool: determine if there are any active authentication tickets for any realm
  • fn has_credentials_for_realm(realm: String) -> Result<bool, String>: determine if there is an authenticated user for the given realm

The style of the C code is enforced with the uncrustify configuration in this directory.

Commit count: 26

cargo fmt