diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index ea1121b4d85a7db374383f31e5721178f524d564..77c7b815bc6585be6823ec2669a4512814f14b1f 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 aceaa13962cea1cc3cbabc0fbcdea02013f93340..44ceea9acbc351d01d89fd8175ea5b53d812de2d 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; /**