Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform simple https request with System.Security.Cryptography.Native.Android PAL #45739

Closed
74 tasks
steveisok opened this issue Dec 8, 2020 · 0 comments
Closed
74 tasks
Labels
area-System.Runtime.InteropServices os-android tracking This issue is tracking the completion of other related issues.
Milestone

Comments

@steveisok
Copy link
Member

In order to support a simple https request, we need the following pinvokes to directly integrate with Android api's:

await new HttpClient().GetStringAsync("https://mail.google.com/mail/");
  • CryptoNative_BioCtrlPending
  • CryptoNative_BioDestroy
  • CryptoNative_BioNewFile
  • CryptoNative_BioRead
  • CryptoNative_BioWrite
  • CryptoNative_CheckX509Hostname
  • CryptoNative_CreateMemoryBio
  • CryptoNative_EncodeAsn1Integer
  • CryptoNative_EnsureLibSslInitialized
  • CryptoNative_EnsureOpenSslInitialized`
  • CryptoNative_ErrClearError
  • CryptoNative_ErrPeekError
  • CryptoNative_ErrPeekLastError
  • CryptoNative_GetAsn1IntegerDerSize
  • CryptoNative_GetAsn1StringBytes
  • CryptoNative_GetObjectDefinitionByName
  • CryptoNative_GetX509NameRawBytes
  • CryptoNative_GetX509RootStoreFile
  • CryptoNative_GetX509RootStorePath
  • CryptoNative_GetX509StackField
  • CryptoNative_GetX509StackFieldCount
  • CryptoNative_GetX509Thumbprint
  • CryptoNative_IsSslRenegotiatePending
  • CryptoNative_IsSslStateOK
  • CryptoNative_LookupFriendlyNameByOid
  • CryptoNative_NewX509Stack
  • CryptoNative_ObjObj2Txt
  • CryptoNative_PemReadX509FromBio
  • CryptoNative_PushX509StackField
  • CryptoNative_ReadX509AsDerFromBio
  • CryptoNative_RecursiveFreeX509Stack
  • CryptoNative_SetCiphers
  • CryptoNative_SetEncryptionPolicy
  • CryptoNative_SetProtocolOptions
  • CryptoNative_SslCreate
  • CryptoNative_SslCtxCreate
  • CryptoNative_SslCtxDestroy
  • CryptoNative_SslCtxSetQuietShutdown
  • CryptoNative_SslDoHandshake
  • CryptoNative_SslGet0AlpnSelected
  • CryptoNative_SslGetCurrentCipherId
  • CryptoNative_SslGetError
  • CryptoNative_SslGetPeerCertChain
  • CryptoNative_SslGetPeerCertificate
  • CryptoNative_SslGetVersion
  • CryptoNative_SslRead
  • CryptoNative_SslSetBio
  • CryptoNative_SslSetConnectState
  • CryptoNative_SslSetTlsExtHostName
  • CryptoNative_SslV2_3Method
  • CryptoNative_SslWrite
  • CryptoNative_Tls13Supported
  • CryptoNative_X509ChainNew
  • CryptoNative_X509CheckPurpose
  • CryptoNative_X509Destroy
  • CryptoNative_X509ExtensionGetData
  • CryptoNative_X509ExtensionGetOid
  • CryptoNative_X509GetExt
  • CryptoNative_X509GetExtCount
  • CryptoNative_X509GetIssuerName
  • CryptoNative_X509GetSerialNumber
  • CryptoNative_X509GetSubjectName
  • CryptoNative_X509StackAddDirectoryStore
  • CryptoNative_X509StackAddMultiple
  • CryptoNative_X509StoreCtxCreate
  • CryptoNative_X509StoreCtxDestroy
  • CryptoNative_X509StoreCtxGetChain
  • CryptoNative_X509StoreCtxGetError
  • CryptoNative_X509StoreCtxInit
  • CryptoNative_X509StoreCtxRebuildChain
  • CryptoNative_X509StoreDestory
  • CryptoNative_X509StoreSetVerifyTime
  • CryptoNative_X509UpRef
  • CryptoNative_X509VerifyCert
@steveisok steveisok added os-android tracking This issue is tracking the completion of other related issues. area-PAL-libraries labels Dec 8, 2020
@steveisok steveisok added this to the 6.0.0 milestone Dec 8, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 8, 2020
@steveisok steveisok removed the untriaged New issue has not been triaged by the area owner label Dec 8, 2020
@EgorBo EgorBo removed their assignment Feb 10, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices os-android tracking This issue is tracking the completion of other related issues.
Projects
None yet
Development

No branches or pull requests

4 participants