[#PEM_write_DSAPrivateKey] = PEM_write_DSAPrivateKey :mrdocs: Write a traditional DSA private key to a FILE in PEM form (deprecated). == Synopsis Declared in `<openssl/pem.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int PEM_write_DSAPrivateKey( FILE* fp, xref:DSA.adoc[DSA] const* x, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* enc, unsigned char const* kstr, int klen, xref:pem_password_cb.adoc[pem_password_cb]* cb, void* u); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *fp* | FILE to write to. | *x* | DSA key to encode. | *enc* | Optional cipher for traditional PEM encryption, or NULL for cleartext. | *kstr* | Optional encryption key bytes used with `enc,` or NULL to prompt via `cb.` | *klen* | Length of `kstr` when provided. | *cb* | Password callback when encryption needs a passphrase, or NULL. | *u* | Application data passed to `cb.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#