Crates.io | rust_admob_ssv |
lib.rs | rust_admob_ssv |
version | 0.1.0 |
source | src |
created_at | 2020-05-08 15:51:11.520884 |
updated_at | 2020-05-08 15:51:11.520884 |
description | A rust implementation for verifying admob ssv callback requests using openssl |
homepage | https://github.com/tserowski/rust_admob_ssv |
repository | https://github.com/tserowski/rust_admob_ssv |
max_upload_size | |
id | 238928 |
size | 10,901 |
This is a library for verifying a callback request (SSV) from AdMob. Please refer to the official documentation for more information.
It only does the verification process using openssl.
It requires you to request the keys from the AdMob key server insert them into a Hashmap<u64, String>
and hand it over to the verifciation function.
This library only has one function verify_ssv_callback
. It takes two parameters:
query_string: String
: The full query String including signature and key_id Documentationpublic_keys: Hashmap<u64, String>
: A HashMap of all public keys received from the AdMob key serverIt returns either Ok(bool)
if the verification was successful/unsuccessful or not or Err(String)
when encountering an error during the whole validation process.