X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcauth.h;h=c691722c1e6e93c1717a2f6c2c512363b1b30496;hb=9f7c7f0df8ad34668409608d5a1507da55395f39;hp=07a2466a39a57f0ec7a54ea0c1c34b497ea279d3;hpb=db7cbac9477e8751b3204a773b499473a82243d7;p=silc.git diff --git a/lib/silccore/silcauth.h b/lib/silccore/silcauth.h index 07a2466a..c691722c 100644 --- a/lib/silccore/silcauth.h +++ b/lib/silccore/silcauth.h @@ -24,6 +24,9 @@ /* Forward declaration of the Authentication Payload */ typedef struct SilcAuthPayloadStruct *SilcAuthPayload; +/* Forward declaration of the Key Agreement Payload */ +typedef struct SilcKeyAgreementPayloadStruct *SilcKeyAgreementPayload; + /* Authentication method type */ typedef unsigned short SilcAuthMethod; @@ -54,5 +57,11 @@ int silc_auth_public_key_auth_verify(SilcAuthPayload payload, int silc_auth_public_key_auth_verify_data(SilcBuffer payload, SilcPKCS pkcs, SilcHash hash, void *id, SilcIdType type); +SilcKeyAgreementPayload silc_key_agreement_payload_parse(SilcBuffer buffer); +SilcBuffer silc_key_agreement_payload_encode(char *hostname, + unsigned int port); +void silc_key_agreement_payload_free(SilcKeyAgreementPayload payload); +char *silc_key_agreement_get_hostname(SilcKeyAgreementPayload payload); +unsigned int silc_key_agreement_get_port(SilcKeyAgreementPayload payload); #endif