Ejemplo n.º 1
0
        internal static SafeSharedAsn1OctetStringHandle X509FindExtensionData(SafeX509Handle x, int extensionNid)
        {
            CheckValidOpenSslHandle(x);

            return(SafeInteriorHandle.OpenInteriorHandle(
                       (handle, arg) => CryptoNative_X509FindExtensionData(handle, arg),
                       x,
                       extensionNid));
        }
        internal static SafeSharedX509NameHandle GetX509NameStackField(SafeSharedX509NameStackHandle sk, int loc)
        {
            CheckValidOpenSslHandle(sk);

            return(SafeInteriorHandle.OpenInteriorHandle(
                       (handle, i) => GetX509NameStackField_private(handle, i),
                       sk,
                       loc));
        }
Ejemplo n.º 3
0
        internal static SafeSharedX509NameEntryHandle GetX509NameEntry(SafeX509NameHandle x509Name, int loc)
        {
            CheckValidOpenSslHandle(x509Name);

            return(SafeInteriorHandle.OpenInteriorHandle(
                       (nameHandle, i) => GetX509NameEntry_private(nameHandle, i),
                       x509Name,
                       loc));
        }
Ejemplo n.º 4
0
 internal static SafeSharedX509StackHandle X509StoreCtxGetSharedUntrusted(SafeX509StoreCtxHandle ctx)
 {
     return(SafeInteriorHandle.OpenInteriorHandle(
                x => X509StoreCtxGetSharedUntrusted_private(x),
                ctx));
 }