shishi_priv_to_file(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_priv_to_file β€” the shishi manual, page 3 πŸ’–

okay bestie, welcome to shishi_priv_to_file(3), part of the shishi manual. yes it's a C API function, yes it's gonna be fun, sit down, grab a strawberry πŸ“


✨ NAME ✨

shishi_priv_to_file β€” an API function. that's it. that's the name. iconic of it honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_priv_to_file(Shishi * handle, Shishi_asn1 priv, int filetype,
       const char * filename);

there she is. four arguments, one int coming back at you. no cap. ✨


🌸 ARGUMENTS 🌸

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). like, the whole vibe of your session lives in here 🫢
  • Shishi_asn1 priv β€” the PRIV you wanna save. your little cryptographic treasure πŸ’œ
  • int filetype β€” an input variable that says what type of file we're writing, check Shishi_filetype for the options, go look it up i'm not doing your homework for you πŸ’…
  • const char * filename β€” an input variable holding the filename you're writing to. literally just the name of the file. that's it. that's the girl πŸŽ€

🌈 DESCRIPTION 🌈

Write PRIV to file in specified TYPE. and bestie, listen β€” the file will be truncated if it exists. not "appended to", not "merged with", truncated. so if there was stuff in there before? gone. bye. πŸ’€


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. that's the good one. the "we ate" one. πŸ”₯


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it to <bug-shishi@gnu.org>. they wanna hear from you fr fr.


Copyright Β© 2002-2022 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (so yes you can share it, just keep the receipts bestie πŸ§ΎπŸ’–)


πŸ‘‘ SEE ALSO πŸ‘‘

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual. go read it, it's giving ✨ encyclopedic ✨


and that's the whole page bestie!! this was shishi version 1.0.3, from the shishi_priv_to_file(3) page, mwah πŸ’…πŸ’– thanks for reading, go write some PRIVs, love u, bye πŸ¦‹πŸŒΈ