45 #include <openssl/rsa.h>
46 #include <openssl/evp.h>
47 #include <openssl/decoder.h>
49 #define MAX_COMPRESSED_FILE_SIZE 100000
50 #define NAME_OF_DIGEST "SHA256"
51 #define RSA_KEYTYPE "RSA"
gchar * remmina_utils_get_logical()
Print address associated with default route.
gchar * remmina_utils_get_lang()
Return the current language defined in the LC_ALL.
int remmina_compress_from_file_to_file(GFile *source, GFile *dest)
Compresses file @source to file @dest.
int remmina_decompress_from_memory_to_file(guchar *source, int len, GFile *plugin_file)
Decompresses pointer @source with length @len to file pointed to by @plugin_file.
EVP_PKEY * remmina_get_pubkey(const char *keytype, const char *public_key_selection)
Uses OSSL_DECODER_CTX to convert public key string to usable OpenSSL structs.
gboolean remmina_verify_plugin_signature(const guchar *signature, GFile *plugin_file, size_t message_length, size_t signature_length)
Attempts to verify the contents of plugin_file with base64 encoded signature.
gchar * remmina_utils_get_lsb_codename()
Print the Distribution codename as specified by the lsb_release command.
G_BEGIN_DECLS gint remmina_utils_string_find(GString *haystack, gint start, gint end, const gchar *needle)
gchar * remmina_gen_random_uuid()
Generate a random sting of chars to be used as part of UID for news or stats.
GHashTable * remmina_utils_get_etc_release()
Print the distribution description if found.
gchar * remmina_utils_get_lsb_release()
Print the Distribution release name as specified by the lsb_release command.
gchar * remmina_utils_get_kernel_name()
Return the OS name as in "uname -s".
const char * remmina_EC_PubKey
gchar * remmina_sha256_buffer(const guchar *buffer, gssize length)
Create a hexadecimal string version of the SHA-256 digest of the buffer.
gchar * remmina_utils_get_link()
Print link associated with default route.
gchar * remmina_rsa_encrypt_string(EVP_PKEY *pubkey, const char *instr)
Calls EVP_PKEY_encrypt multiple times to encrypt instr.
gchar * remmina_utils_get_python()
Print python version.
gint remmina_utils_string_replace(GString *str, gint pos, gint len, const gchar *replace)
gchar * remmina_utils_get_lsb_id()
Print the Distributor as specified by the lsb_release command.
gchar * remmina_utils_get_kernel_arch()
Return the machine hardware name as in "uname -m".
const char * remmina_RSA_PubKey_v2
gchar * remmina_utils_get_dev()
Print device associated with default route.
gchar * remmina_utils_get_lsb_description()
Print the Distribution description as specified by the lsb_release command.
gchar * remmina_utils_get_mage()
Print machine age.
const char * remmina_RSA_PubKey_v1
guint remmina_utils_string_replace_all(GString *haystack, const gchar *needle, const gchar *replace)
Replaces all occurrences of needle in haystack with replace.
gchar * remmina_utils_get_kernel_release()
Return the OS version as in "uname -r".
gboolean remmina_execute_plugin_signature_verification(GFile *plugin_file, size_t msg_len, const guchar *sig, size_t sig_len, EVP_PKEY *public_key)
A helper function that performs the actual signature verification (that is, this function makes direc...
gchar * remmina_utils_string_strip(const gchar *s)
Strip , \t and " from a given string.
gchar * remmina_sha1_file(const gchar *filename)
Create a hexadecimal string version of the SHA-1 digest of the contents of the named file.