Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Who can translate this code into C#?

binbin.9006binbin.9006 CNMember ✭✭

https://blog.6ag.cn/1714.html

        vpnProtocolIKEv2.sharedSecretReference = JFKeychain.searchCopy(matching: "VPN_PSK")

How to set the key code of shared key?

Answers

  • binbin.9006binbin.9006 CNMember ✭✭
                        ipsec.SharedSecretReference =NSData.FromString("666888") ;
    

    I don't know how to set it. IOS code doesn't translate.

  • ColeXColeX Member, Xamarin Team Xamurai

    Firstly you should translate JFKeychain class , convert the implementation from swift to C# .

    Or create binding library with the class , make it available from xamarin project .


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Sign In or Register to comment.