diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 283d7bef593de0ab92675dd186438e86a124b014..40241dce14f447e3543a73e1a9fda743c3a9aaa0 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -105,6 +105,7 @@ declare namespace connection { * Checks whether the default data network is activated. * * @param callback Returns {@code true} if the default data network is activated; returns {@code false} otherwise. + * @permission ohos.permission.GET_NETWORK_INFO */ function hasDefaultNet(callback: AsyncCallback): void; function hasDefaultNet(): Promise; diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index 1f6d090abdb7f37020ea51cea687dfe455b23727..ecb92e04086c9684ff042075042b0ea3349d519f 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -25,6 +25,11 @@ import cryptoFramework from "./@ohos.security.cryptoFramework"; */ declare namespace socket { export import NetAddress = connection.NetAddress; + /** + * Deposit certificate + * + * @since 9 + */ export type X509CertRawData = cryptoFramework.EncodingBlob; /**