microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/typings/openssl-wrapper/openssl-wrapper.d.ts
33lines · modeblame
4bb0956eRedMickey5 years ago | 1 | /** |
| 2 | * Copyright (c) Facebook, Inc. and its affiliates. | |
| 3 | * | |
| 4 | * This source code is licensed under the MIT license found in the | |
| 5 | * LICENSE file in the root directory of this source tree. | |
| 6 | * | |
| 7 | * @format | |
| 8 | */ | |
| 9 | | |
| 10 | // Type definitions for openssl-wrapper 0.3.4 | |
| 11 | // Project: https://github.com/mgcrea/node-openssl-wrapper | |
| 12 | // Definitions by: facebook/flipper <https://github.com/facebook/flipper> | |
| 13 | | |
| 14 | declare module "openssl-wrapper" { | |
| 15 | export type Action = | |
| 16 | | "cms.verify" | |
| 17 | | "genrsa" | |
| 18 | | "pkcs12" | |
| 19 | | "req" | |
| 20 | | "req.new" | |
| 21 | | "req.verify" | |
| 22 | | "verify" | |
| 23 | | "rsa" | |
| 24 | | "smime.verify" | |
| 25 | | "x509.req" | |
| 26 | | "x509"; | |
| 27 | | |
| 28 | export function exec( | |
| 29 | action: Action, | |
| 30 | options: { [key: string]: string }, | |
| 31 | cb: (error: Error | undefined, buffer: Buffer | undefined) => any, | |
| 32 | ): void; | |
| 33 | } |