@girs/gcr-4 4.1.0-3.2.6 → 4.1.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gcr-4.d.cts +53 -53
- package/gcr-4.d.ts +53 -53
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
A library for bits of crypto UI and parsing
|
|
11
11
|
|
package/gcr-4.d.cts
CHANGED
|
@@ -294,31 +294,31 @@ export const MINOR_VERSION: number
|
|
|
294
294
|
/**
|
|
295
295
|
* The purpose used to verify the client certificate in a TLS connection.
|
|
296
296
|
*/
|
|
297
|
-
export const PURPOSE_CLIENT_AUTH: string
|
|
297
|
+
export const PURPOSE_CLIENT_AUTH: string
|
|
298
298
|
/**
|
|
299
299
|
* The purpose used to verify certificate used for the signature on signed code.
|
|
300
300
|
*/
|
|
301
|
-
export const PURPOSE_CODE_SIGNING: string
|
|
301
|
+
export const PURPOSE_CODE_SIGNING: string
|
|
302
302
|
/**
|
|
303
303
|
* The purpose used to verify certificates that are used in email communication
|
|
304
304
|
* such as S/MIME.
|
|
305
305
|
*/
|
|
306
|
-
export const PURPOSE_EMAIL: string
|
|
306
|
+
export const PURPOSE_EMAIL: string
|
|
307
307
|
/**
|
|
308
308
|
* The purpose used to verify the server certificate in a TLS connection. This
|
|
309
309
|
* is the most common purpose in use.
|
|
310
310
|
*/
|
|
311
|
-
export const PURPOSE_SERVER_AUTH: string
|
|
311
|
+
export const PURPOSE_SERVER_AUTH: string
|
|
312
312
|
/**
|
|
313
313
|
* The current secret exchange protocol. Key agreement is done using DH with the
|
|
314
314
|
* 1536 bit IKE parameter group. Keys are derived using SHA256 with HKDF. The
|
|
315
315
|
* transport encryption is done with 128 bit AES.
|
|
316
316
|
*/
|
|
317
|
-
export const SECRET_EXCHANGE_PROTOCOL_1: string
|
|
318
|
-
export const UNLOCK_OPTION_ALWAYS: string
|
|
319
|
-
export const UNLOCK_OPTION_IDLE: string
|
|
320
|
-
export const UNLOCK_OPTION_SESSION: string
|
|
321
|
-
export const UNLOCK_OPTION_TIMEOUT: string
|
|
317
|
+
export const SECRET_EXCHANGE_PROTOCOL_1: string
|
|
318
|
+
export const UNLOCK_OPTION_ALWAYS: string
|
|
319
|
+
export const UNLOCK_OPTION_IDLE: string
|
|
320
|
+
export const UNLOCK_OPTION_SESSION: string
|
|
321
|
+
export const UNLOCK_OPTION_TIMEOUT: string
|
|
322
322
|
export function data_error_get_domain(): GLib.Quark
|
|
323
323
|
/**
|
|
324
324
|
* Create a key fingerprint for a certificate, public key or private key.
|
|
@@ -427,7 +427,7 @@ export function mock_prompter_set_delay_msec(delay_msec: number): void
|
|
|
427
427
|
* name with gcr_system_prompt_open_for_prompter() to connect to this prompter.
|
|
428
428
|
* @returns the bus name that the mock prompter is listening on
|
|
429
429
|
*/
|
|
430
|
-
export function mock_prompter_start(): string
|
|
430
|
+
export function mock_prompter_start(): string
|
|
431
431
|
/**
|
|
432
432
|
* Stop the mock prompter. This is often used from the
|
|
433
433
|
* <literal>teardown<!-- -->()</literal> function of tests.
|
|
@@ -460,7 +460,7 @@ export function pkcs11_add_module(module: Gck.Module): void
|
|
|
460
460
|
* @param unused unused
|
|
461
461
|
* @returns whether the module was sucessfully added.
|
|
462
462
|
*/
|
|
463
|
-
export function pkcs11_add_module_from_file(module_path: string
|
|
463
|
+
export function pkcs11_add_module_from_file(module_path: string, unused: any | null): boolean
|
|
464
464
|
/**
|
|
465
465
|
* List all the PKCS#11 modules that are used by the GCR library.
|
|
466
466
|
* Each module is a [class`Gck`.Module] object.
|
|
@@ -576,7 +576,7 @@ export function pkcs11_set_trust_store_uri(pkcs11_uri: string | null): void
|
|
|
576
576
|
* @param cancellable a #GCancellable
|
|
577
577
|
* @returns %TRUE if the pinned certificate is recorded successfully
|
|
578
578
|
*/
|
|
579
|
-
export function trust_add_pinned_certificate(certificate: Certificate, purpose: string
|
|
579
|
+
export function trust_add_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
580
580
|
/**
|
|
581
581
|
* Add a pinned certificate for communication with `peer` for `purpose`. A pinned
|
|
582
582
|
* certificate overrides all other certificate verification and should be used
|
|
@@ -594,7 +594,7 @@ export function trust_add_pinned_certificate(certificate: Certificate, purpose:
|
|
|
594
594
|
* @param cancellable a #GCancellable
|
|
595
595
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
596
596
|
*/
|
|
597
|
-
export function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
597
|
+
export function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
598
598
|
|
|
599
599
|
// Overloads of trust_add_pinned_certificate_async
|
|
600
600
|
|
|
@@ -617,7 +617,7 @@ export function trust_add_pinned_certificate_async<Z = unknown>(certificate: Cer
|
|
|
617
617
|
* @param cancellable a #GCancellable
|
|
618
618
|
* @returns A Promise of: %TRUE if the pinned certificate is recorded successfully
|
|
619
619
|
*/
|
|
620
|
-
export function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
620
|
+
export function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
621
621
|
/**
|
|
622
622
|
* Finishes an asynchronous operation started by
|
|
623
623
|
* gcr_trust_add_pinned_certificate_async().
|
|
@@ -640,7 +640,7 @@ export function trust_add_pinned_certificate_finish(result: Gio.AsyncResult): bo
|
|
|
640
640
|
* @param cancellable a #GCancellable
|
|
641
641
|
* @returns %TRUE if the certificate is a trust anchor
|
|
642
642
|
*/
|
|
643
|
-
export function trust_is_certificate_anchored(certificate: Certificate, purpose: string
|
|
643
|
+
export function trust_is_certificate_anchored(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): boolean
|
|
644
644
|
/**
|
|
645
645
|
* Check if the `certificate` is a trust anchor for the given `purpose`. A trust
|
|
646
646
|
* anchor is used to verify the signatures on other certificates when verifying
|
|
@@ -653,7 +653,7 @@ export function trust_is_certificate_anchored(certificate: Certificate, purpose:
|
|
|
653
653
|
* @param cancellable a #GCancellable
|
|
654
654
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
655
655
|
*/
|
|
656
|
-
export function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
656
|
+
export function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
657
657
|
|
|
658
658
|
// Overloads of trust_is_certificate_anchored_async
|
|
659
659
|
|
|
@@ -671,7 +671,7 @@ export function trust_is_certificate_anchored_async<Z = unknown>(certificate: Ce
|
|
|
671
671
|
* @param cancellable a #GCancellable
|
|
672
672
|
* @returns A Promise of: %TRUE if the certificate is a trust anchor
|
|
673
673
|
*/
|
|
674
|
-
export function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
674
|
+
export function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
675
675
|
/**
|
|
676
676
|
* Finishes an asynchronous operation started by
|
|
677
677
|
* gcr_trust_is_certificate_anchored_async().
|
|
@@ -762,7 +762,7 @@ export function trust_is_certificate_distrusted_finish(result: Gio.AsyncResult):
|
|
|
762
762
|
* @param cancellable a #GCancellable
|
|
763
763
|
* @returns %TRUE if the certificate is pinned for the host and purpose
|
|
764
764
|
*/
|
|
765
|
-
export function trust_is_certificate_pinned(certificate: Certificate, purpose: string
|
|
765
|
+
export function trust_is_certificate_pinned(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
766
766
|
/**
|
|
767
767
|
* Check if `certificate` is pinned for `purpose` to communicate with `peer`. A
|
|
768
768
|
* pinned certificate overrides all other certificate verification.
|
|
@@ -776,7 +776,7 @@ export function trust_is_certificate_pinned(certificate: Certificate, purpose: s
|
|
|
776
776
|
* @param cancellable a #GCancellable
|
|
777
777
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
778
778
|
*/
|
|
779
|
-
export function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
779
|
+
export function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
780
780
|
|
|
781
781
|
// Overloads of trust_is_certificate_pinned_async
|
|
782
782
|
|
|
@@ -795,7 +795,7 @@ export function trust_is_certificate_pinned_async<Z = unknown>(certificate: Cert
|
|
|
795
795
|
* @param cancellable a #GCancellable
|
|
796
796
|
* @returns A Promise of: %TRUE if the certificate is pinned.
|
|
797
797
|
*/
|
|
798
|
-
export function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
798
|
+
export function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
799
799
|
/**
|
|
800
800
|
* Finishes an asynchronous operation started by
|
|
801
801
|
* gcr_trust_is_certificate_pinned_async().
|
|
@@ -820,7 +820,7 @@ export function trust_is_certificate_pinned_finish(result: Gio.AsyncResult): boo
|
|
|
820
820
|
* @param cancellable a #GCancellable
|
|
821
821
|
* @returns %TRUE if the pinned certificate no longer exists
|
|
822
822
|
*/
|
|
823
|
-
export function trust_remove_pinned_certificate(certificate: Certificate, purpose: string
|
|
823
|
+
export function trust_remove_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
824
824
|
/**
|
|
825
825
|
* Remove a pinned certificate for communication with `peer` for `purpose`.
|
|
826
826
|
*
|
|
@@ -836,7 +836,7 @@ export function trust_remove_pinned_certificate(certificate: Certificate, purpos
|
|
|
836
836
|
* @param cancellable a #GCancellable
|
|
837
837
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
838
838
|
*/
|
|
839
|
-
export function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
839
|
+
export function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
840
840
|
|
|
841
841
|
// Overloads of trust_remove_pinned_certificate_async
|
|
842
842
|
|
|
@@ -857,7 +857,7 @@ export function trust_remove_pinned_certificate_async<Z = unknown>(certificate:
|
|
|
857
857
|
* @param cancellable a #GCancellable
|
|
858
858
|
* @returns A Promise of: %TRUE if the pinned certificate no longer exists
|
|
859
859
|
*/
|
|
860
|
-
export function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
860
|
+
export function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
861
861
|
/**
|
|
862
862
|
* Finishes an asynchronous operation started by
|
|
863
863
|
* gcr_trust_remove_pinned_certificate_async().
|
|
@@ -991,7 +991,7 @@ export interface Certificate {
|
|
|
991
991
|
* @param part a DN type string or OID.
|
|
992
992
|
* @returns the allocated part of the issuer DN, or %NULL if no such part is present
|
|
993
993
|
*/
|
|
994
|
-
get_issuer_part(part: string
|
|
994
|
+
get_issuer_part(part: string): string | null
|
|
995
995
|
/**
|
|
996
996
|
* Get the raw DER data for the issuer DN of the certificate.
|
|
997
997
|
*
|
|
@@ -1058,7 +1058,7 @@ export interface Certificate {
|
|
|
1058
1058
|
* @param part a DN type string or OID.
|
|
1059
1059
|
* @returns the allocated part of the subject DN, or %NULL if no such part is present.
|
|
1060
1060
|
*/
|
|
1061
|
-
get_subject_part(part: string
|
|
1061
|
+
get_subject_part(part: string): string | null
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Get the raw DER data for the subject DN of the certificate.
|
|
1064
1064
|
*
|
|
@@ -1949,7 +1949,7 @@ export interface Prompt {
|
|
|
1949
1949
|
* @param cancellable optional cancellation object
|
|
1950
1950
|
* @returns the password owned by the prompt, or %NULL
|
|
1951
1951
|
*/
|
|
1952
|
-
password(cancellable: Gio.Cancellable | null): string
|
|
1952
|
+
password(cancellable: Gio.Cancellable | null): string
|
|
1953
1953
|
/**
|
|
1954
1954
|
* Prompts for password. Set the various properties on the prompt before calling
|
|
1955
1955
|
* this method to explain which password should be entered.
|
|
@@ -1972,7 +1972,7 @@ export interface Prompt {
|
|
|
1972
1972
|
* @param cancellable optional cancellation object
|
|
1973
1973
|
* @returns A Promise of: the password owned by the prompt, or %NULL
|
|
1974
1974
|
*/
|
|
1975
|
-
password_async(cancellable: Gio.Cancellable | null): globalThis.Promise<string
|
|
1975
|
+
password_async(cancellable: Gio.Cancellable | null): globalThis.Promise<string>
|
|
1976
1976
|
/**
|
|
1977
1977
|
* Complete an operation to prompt for a password.
|
|
1978
1978
|
*
|
|
@@ -1985,7 +1985,7 @@ export interface Prompt {
|
|
|
1985
1985
|
* @param result asynchronous result passed to callback
|
|
1986
1986
|
* @returns the password owned by the prompt, or %NULL
|
|
1987
1987
|
*/
|
|
1988
|
-
password_finish(result: Gio.AsyncResult): string
|
|
1988
|
+
password_finish(result: Gio.AsyncResult): string
|
|
1989
1989
|
/**
|
|
1990
1990
|
* Prompts for password. Set the various properties on the prompt before calling
|
|
1991
1991
|
* this method to explain which password should be entered.
|
|
@@ -2003,7 +2003,7 @@ export interface Prompt {
|
|
|
2003
2003
|
* @param cancellable optional cancellation object
|
|
2004
2004
|
* @returns the password owned by the prompt, or %NULL
|
|
2005
2005
|
*/
|
|
2006
|
-
password_run(cancellable: Gio.Cancellable | null): string
|
|
2006
|
+
password_run(cancellable: Gio.Cancellable | null): string
|
|
2007
2007
|
/**
|
|
2008
2008
|
* Reset the contents and properties of the prompt.
|
|
2009
2009
|
*/
|
|
@@ -2016,7 +2016,7 @@ export interface Prompt {
|
|
|
2016
2016
|
* way it sees fit.
|
|
2017
2017
|
* @param window_id the window id
|
|
2018
2018
|
*/
|
|
2019
|
-
set_caller_window(window_id: string
|
|
2019
|
+
set_caller_window(window_id: string): void
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Set the label for the continue button.
|
|
2022
2022
|
*
|
|
@@ -2024,7 +2024,7 @@ export interface Prompt {
|
|
|
2024
2024
|
* from the prompt.
|
|
2025
2025
|
* @param cancel_label the label
|
|
2026
2026
|
*/
|
|
2027
|
-
set_cancel_label(cancel_label: string
|
|
2027
|
+
set_cancel_label(cancel_label: string): void
|
|
2028
2028
|
/**
|
|
2029
2029
|
* Set whether the additional choice is chosen or not.
|
|
2030
2030
|
*
|
|
@@ -2052,7 +2052,7 @@ export interface Prompt {
|
|
|
2052
2052
|
* from the prompt.
|
|
2053
2053
|
* @param continue_label the label
|
|
2054
2054
|
*/
|
|
2055
|
-
set_continue_label(continue_label: string
|
|
2055
|
+
set_continue_label(continue_label: string): void
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Set the detailed description of the prompt.
|
|
2058
2058
|
*
|
|
@@ -2061,14 +2061,14 @@ export interface Prompt {
|
|
|
2061
2061
|
* information.
|
|
2062
2062
|
* @param description the detailed description
|
|
2063
2063
|
*/
|
|
2064
|
-
set_description(description: string
|
|
2064
|
+
set_description(description: string): void
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Sets the prompt message for the user.
|
|
2067
2067
|
*
|
|
2068
2068
|
* A prompt implementation should always display this message.
|
|
2069
2069
|
* @param message the prompt message
|
|
2070
2070
|
*/
|
|
2071
|
-
set_message(message: string
|
|
2071
|
+
set_message(message: string): void
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Set whether the prompt will prompt for a new password.
|
|
2074
2074
|
*
|
|
@@ -2085,7 +2085,7 @@ export interface Prompt {
|
|
|
2085
2085
|
* prompt message should contain relevant information.
|
|
2086
2086
|
* @param title the prompt title
|
|
2087
2087
|
*/
|
|
2088
|
-
set_title(title: string
|
|
2088
|
+
set_title(title: string): void
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Set a prompt warning displayed on the prompt.
|
|
2091
2091
|
*
|
|
@@ -2145,7 +2145,7 @@ export interface Prompt {
|
|
|
2145
2145
|
* @param result asynchronous result passed to callback
|
|
2146
2146
|
* @returns the password owned by the prompt, or %NULL
|
|
2147
2147
|
*/
|
|
2148
|
-
vfunc_prompt_password_finish(result: Gio.AsyncResult): string
|
|
2148
|
+
vfunc_prompt_password_finish(result: Gio.AsyncResult): string
|
|
2149
2149
|
|
|
2150
2150
|
// Own signals of Gcr-4.Gcr.Prompt
|
|
2151
2151
|
|
|
@@ -2300,7 +2300,7 @@ export interface CertificateChain {
|
|
|
2300
2300
|
* @param cancellable a #GCancellable or %NULL
|
|
2301
2301
|
* @returns whether the operation completed successfully
|
|
2302
2302
|
*/
|
|
2303
|
-
build(purpose: string
|
|
2303
|
+
build(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): boolean
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Complete a certificate chain. Once a certificate chain has been built
|
|
2306
2306
|
* its status can be examined.
|
|
@@ -2337,7 +2337,7 @@ export interface CertificateChain {
|
|
|
2337
2337
|
* @param cancellable a #GCancellable or %NULL
|
|
2338
2338
|
* @param callback this will be called when the operation completes.
|
|
2339
2339
|
*/
|
|
2340
|
-
build_async(purpose: string
|
|
2340
|
+
build_async(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2341
2341
|
|
|
2342
2342
|
// Overloads of build_async
|
|
2343
2343
|
|
|
@@ -2379,7 +2379,7 @@ export interface CertificateChain {
|
|
|
2379
2379
|
* @param cancellable a #GCancellable or %NULL
|
|
2380
2380
|
* @returns A Promise of: whether the operation succeeded
|
|
2381
2381
|
*/
|
|
2382
|
-
build_async(purpose: string
|
|
2382
|
+
build_async(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Finishes an asynchronous operation started by
|
|
2385
2385
|
* gcr_certificate_chain_build_async().
|
|
@@ -2524,7 +2524,7 @@ export interface CertificateField {
|
|
|
2524
2524
|
* Get the display label of the field.
|
|
2525
2525
|
* @returns the display label of the field
|
|
2526
2526
|
*/
|
|
2527
|
-
get_label(): string
|
|
2527
|
+
get_label(): string
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Get the parent #GcrCertificateSection.
|
|
2530
2530
|
* @returns the parent #GcrCertificateSection
|
|
@@ -2675,7 +2675,7 @@ export interface CertificateRequest {
|
|
|
2675
2675
|
* Set the common name encoded in the certificate request.
|
|
2676
2676
|
* @param cn common name to set on the request
|
|
2677
2677
|
*/
|
|
2678
|
-
set_cn(cn: string
|
|
2678
|
+
set_cn(cn: string): void
|
|
2679
2679
|
|
|
2680
2680
|
// Class property signals of Gcr-4.Gcr.CertificateRequest
|
|
2681
2681
|
|
|
@@ -2777,7 +2777,7 @@ export interface CertificateSection {
|
|
|
2777
2777
|
* Get the displayable label of the section.
|
|
2778
2778
|
* @returns the displayable label of the section
|
|
2779
2779
|
*/
|
|
2780
|
-
get_label(): string
|
|
2780
|
+
get_label(): string
|
|
2781
2781
|
|
|
2782
2782
|
// Class property signals of Gcr-4.Gcr.CertificateSection
|
|
2783
2783
|
|
|
@@ -2899,7 +2899,7 @@ export interface Parser {
|
|
|
2899
2899
|
* Get the filename of the parser item.
|
|
2900
2900
|
* @returns the filename set on the parser, or %NULL
|
|
2901
2901
|
*/
|
|
2902
|
-
get_filename(): string
|
|
2902
|
+
get_filename(): string
|
|
2903
2903
|
/**
|
|
2904
2904
|
* Get the currently parsed item
|
|
2905
2905
|
* @returns the currently parsed item
|
|
@@ -3142,13 +3142,13 @@ export interface Pkcs11Certificate extends Certificate {
|
|
|
3142
3142
|
* @param key name of the key for that association
|
|
3143
3143
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3144
3144
|
*/
|
|
3145
|
-
get_data(key: string
|
|
3145
|
+
get_data(key: string): any | null
|
|
3146
3146
|
/**
|
|
3147
3147
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3148
3148
|
* @param key name of the key for that association
|
|
3149
3149
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3150
3150
|
*/
|
|
3151
|
-
get_data(key: string
|
|
3151
|
+
get_data(key: string): any | null
|
|
3152
3152
|
|
|
3153
3153
|
// Class property signals of Gcr-4.Gcr.Pkcs11Certificate
|
|
3154
3154
|
|
|
@@ -3219,7 +3219,7 @@ export class Pkcs11Certificate extends Gck.Object {
|
|
|
3219
3219
|
* @param cancellable a #GCancellable
|
|
3220
3220
|
* @returns a new #GcrCertificate, or %NULL
|
|
3221
3221
|
*/
|
|
3222
|
-
static new_from_uri(pkcs11_uri: string
|
|
3222
|
+
static new_from_uri(pkcs11_uri: string, cancellable: Gio.Cancellable | null): Certificate | null
|
|
3223
3223
|
/**
|
|
3224
3224
|
* Lookup a certificate in the PKCS#11 storage by the given URI.
|
|
3225
3225
|
*
|
|
@@ -3230,7 +3230,7 @@ export class Pkcs11Certificate extends Gck.Object {
|
|
|
3230
3230
|
* @param cancellable a #GCancellable
|
|
3231
3231
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
3232
3232
|
*/
|
|
3233
|
-
static new_from_uri_async(pkcs11_uri: string
|
|
3233
|
+
static new_from_uri_async(pkcs11_uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Pkcs11Certificate> | null): void
|
|
3234
3234
|
/**
|
|
3235
3235
|
* Finishes an asynchronous operation started by
|
|
3236
3236
|
* gcr_pkcs11_certificate_new_from_uri_async().
|
|
@@ -3329,7 +3329,7 @@ export interface SecretExchange {
|
|
|
3329
3329
|
* been called successfully.
|
|
3330
3330
|
* @returns the protocol or %NULL
|
|
3331
3331
|
*/
|
|
3332
|
-
get_protocol(): string
|
|
3332
|
+
get_protocol(): string
|
|
3333
3333
|
/**
|
|
3334
3334
|
* Returns the last secret received. If no secret has yet been received this
|
|
3335
3335
|
* will return %NULL. The string is owned by the #GcrSecretExchange object
|
|
@@ -3353,7 +3353,7 @@ export interface SecretExchange {
|
|
|
3353
3353
|
* @param exchange the string received
|
|
3354
3354
|
* @returns whether the string was successfully parsed and received
|
|
3355
3355
|
*/
|
|
3356
|
-
receive(exchange: string
|
|
3356
|
+
receive(exchange: string): boolean
|
|
3357
3357
|
/**
|
|
3358
3358
|
* Send a reply to the other side of the secret exchange, optionally sending a
|
|
3359
3359
|
* secret.
|
|
@@ -3370,7 +3370,7 @@ export interface SecretExchange {
|
|
|
3370
3370
|
// Own virtual methods of Gcr-4.Gcr.SecretExchange
|
|
3371
3371
|
|
|
3372
3372
|
vfunc_derive_transport_key(peer: number, n_peer: number): boolean
|
|
3373
|
-
vfunc_generate_exchange_key(scheme: string
|
|
3373
|
+
vfunc_generate_exchange_key(scheme: string, public_key: number, n_public_key: number): boolean
|
|
3374
3374
|
|
|
3375
3375
|
// Class property signals of Gcr-4.Gcr.SecretExchange
|
|
3376
3376
|
|
|
@@ -4248,7 +4248,7 @@ export interface Parsed {
|
|
|
4248
4248
|
* Get the filename of the parsed item.
|
|
4249
4249
|
* @returns the filename of the parsed item, or %NULL
|
|
4250
4250
|
*/
|
|
4251
|
-
get_filename(): string
|
|
4251
|
+
get_filename(): string
|
|
4252
4252
|
/**
|
|
4253
4253
|
* Get the format of the parsed item.
|
|
4254
4254
|
* @returns the data format of the item
|
|
@@ -4350,7 +4350,7 @@ export interface PromptInterface {
|
|
|
4350
4350
|
*/
|
|
4351
4351
|
parent_iface: GObject.TypeInterface
|
|
4352
4352
|
prompt_password_async: (prompt: Prompt, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
4353
|
-
prompt_password_finish: (prompt: Prompt, result: Gio.AsyncResult) => string
|
|
4353
|
+
prompt_password_finish: (prompt: Prompt, result: Gio.AsyncResult) => string
|
|
4354
4354
|
prompt_confirm_async: (prompt: Prompt, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
4355
4355
|
prompt_confirm_finish: (prompt: Prompt, result: Gio.AsyncResult) => PromptReply
|
|
4356
4356
|
prompt_close: (prompt: Prompt) => void
|
|
@@ -4371,7 +4371,7 @@ export interface SecretExchangeClass {
|
|
|
4371
4371
|
|
|
4372
4372
|
// Own fields of Gcr-4.Gcr.SecretExchangeClass
|
|
4373
4373
|
|
|
4374
|
-
generate_exchange_key: (exchange: SecretExchange, scheme: string
|
|
4374
|
+
generate_exchange_key: (exchange: SecretExchange, scheme: string, public_key: number, n_public_key: number) => boolean
|
|
4375
4375
|
derive_transport_key: (exchange: SecretExchange, peer: number, n_peer: number) => boolean
|
|
4376
4376
|
}
|
|
4377
4377
|
|
package/gcr-4.d.ts
CHANGED
|
@@ -296,31 +296,31 @@ const MINOR_VERSION: number
|
|
|
296
296
|
/**
|
|
297
297
|
* The purpose used to verify the client certificate in a TLS connection.
|
|
298
298
|
*/
|
|
299
|
-
const PURPOSE_CLIENT_AUTH: string
|
|
299
|
+
const PURPOSE_CLIENT_AUTH: string
|
|
300
300
|
/**
|
|
301
301
|
* The purpose used to verify certificate used for the signature on signed code.
|
|
302
302
|
*/
|
|
303
|
-
const PURPOSE_CODE_SIGNING: string
|
|
303
|
+
const PURPOSE_CODE_SIGNING: string
|
|
304
304
|
/**
|
|
305
305
|
* The purpose used to verify certificates that are used in email communication
|
|
306
306
|
* such as S/MIME.
|
|
307
307
|
*/
|
|
308
|
-
const PURPOSE_EMAIL: string
|
|
308
|
+
const PURPOSE_EMAIL: string
|
|
309
309
|
/**
|
|
310
310
|
* The purpose used to verify the server certificate in a TLS connection. This
|
|
311
311
|
* is the most common purpose in use.
|
|
312
312
|
*/
|
|
313
|
-
const PURPOSE_SERVER_AUTH: string
|
|
313
|
+
const PURPOSE_SERVER_AUTH: string
|
|
314
314
|
/**
|
|
315
315
|
* The current secret exchange protocol. Key agreement is done using DH with the
|
|
316
316
|
* 1536 bit IKE parameter group. Keys are derived using SHA256 with HKDF. The
|
|
317
317
|
* transport encryption is done with 128 bit AES.
|
|
318
318
|
*/
|
|
319
|
-
const SECRET_EXCHANGE_PROTOCOL_1: string
|
|
320
|
-
const UNLOCK_OPTION_ALWAYS: string
|
|
321
|
-
const UNLOCK_OPTION_IDLE: string
|
|
322
|
-
const UNLOCK_OPTION_SESSION: string
|
|
323
|
-
const UNLOCK_OPTION_TIMEOUT: string
|
|
319
|
+
const SECRET_EXCHANGE_PROTOCOL_1: string
|
|
320
|
+
const UNLOCK_OPTION_ALWAYS: string
|
|
321
|
+
const UNLOCK_OPTION_IDLE: string
|
|
322
|
+
const UNLOCK_OPTION_SESSION: string
|
|
323
|
+
const UNLOCK_OPTION_TIMEOUT: string
|
|
324
324
|
function data_error_get_domain(): GLib.Quark
|
|
325
325
|
/**
|
|
326
326
|
* Create a key fingerprint for a certificate, public key or private key.
|
|
@@ -429,7 +429,7 @@ function mock_prompter_set_delay_msec(delay_msec: number): void
|
|
|
429
429
|
* name with gcr_system_prompt_open_for_prompter() to connect to this prompter.
|
|
430
430
|
* @returns the bus name that the mock prompter is listening on
|
|
431
431
|
*/
|
|
432
|
-
function mock_prompter_start(): string
|
|
432
|
+
function mock_prompter_start(): string
|
|
433
433
|
/**
|
|
434
434
|
* Stop the mock prompter. This is often used from the
|
|
435
435
|
* <literal>teardown<!-- -->()</literal> function of tests.
|
|
@@ -462,7 +462,7 @@ function pkcs11_add_module(module: Gck.Module): void
|
|
|
462
462
|
* @param unused unused
|
|
463
463
|
* @returns whether the module was sucessfully added.
|
|
464
464
|
*/
|
|
465
|
-
function pkcs11_add_module_from_file(module_path: string
|
|
465
|
+
function pkcs11_add_module_from_file(module_path: string, unused: any | null): boolean
|
|
466
466
|
/**
|
|
467
467
|
* List all the PKCS#11 modules that are used by the GCR library.
|
|
468
468
|
* Each module is a [class`Gck`.Module] object.
|
|
@@ -578,7 +578,7 @@ function pkcs11_set_trust_store_uri(pkcs11_uri: string | null): void
|
|
|
578
578
|
* @param cancellable a #GCancellable
|
|
579
579
|
* @returns %TRUE if the pinned certificate is recorded successfully
|
|
580
580
|
*/
|
|
581
|
-
function trust_add_pinned_certificate(certificate: Certificate, purpose: string
|
|
581
|
+
function trust_add_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
582
582
|
/**
|
|
583
583
|
* Add a pinned certificate for communication with `peer` for `purpose`. A pinned
|
|
584
584
|
* certificate overrides all other certificate verification and should be used
|
|
@@ -596,7 +596,7 @@ function trust_add_pinned_certificate(certificate: Certificate, purpose: string
|
|
|
596
596
|
* @param cancellable a #GCancellable
|
|
597
597
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
598
598
|
*/
|
|
599
|
-
function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
599
|
+
function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
600
600
|
|
|
601
601
|
// Overloads of trust_add_pinned_certificate_async
|
|
602
602
|
|
|
@@ -619,7 +619,7 @@ function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificat
|
|
|
619
619
|
* @param cancellable a #GCancellable
|
|
620
620
|
* @returns A Promise of: %TRUE if the pinned certificate is recorded successfully
|
|
621
621
|
*/
|
|
622
|
-
function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
622
|
+
function trust_add_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
623
623
|
/**
|
|
624
624
|
* Finishes an asynchronous operation started by
|
|
625
625
|
* gcr_trust_add_pinned_certificate_async().
|
|
@@ -642,7 +642,7 @@ function trust_add_pinned_certificate_finish(result: Gio.AsyncResult): boolean
|
|
|
642
642
|
* @param cancellable a #GCancellable
|
|
643
643
|
* @returns %TRUE if the certificate is a trust anchor
|
|
644
644
|
*/
|
|
645
|
-
function trust_is_certificate_anchored(certificate: Certificate, purpose: string
|
|
645
|
+
function trust_is_certificate_anchored(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): boolean
|
|
646
646
|
/**
|
|
647
647
|
* Check if the `certificate` is a trust anchor for the given `purpose`. A trust
|
|
648
648
|
* anchor is used to verify the signatures on other certificates when verifying
|
|
@@ -655,7 +655,7 @@ function trust_is_certificate_anchored(certificate: Certificate, purpose: string
|
|
|
655
655
|
* @param cancellable a #GCancellable
|
|
656
656
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
657
657
|
*/
|
|
658
|
-
function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
658
|
+
function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
659
659
|
|
|
660
660
|
// Overloads of trust_is_certificate_anchored_async
|
|
661
661
|
|
|
@@ -673,7 +673,7 @@ function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certifica
|
|
|
673
673
|
* @param cancellable a #GCancellable
|
|
674
674
|
* @returns A Promise of: %TRUE if the certificate is a trust anchor
|
|
675
675
|
*/
|
|
676
|
-
function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
676
|
+
function trust_is_certificate_anchored_async<Z = unknown>(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
677
677
|
/**
|
|
678
678
|
* Finishes an asynchronous operation started by
|
|
679
679
|
* gcr_trust_is_certificate_anchored_async().
|
|
@@ -764,7 +764,7 @@ function trust_is_certificate_distrusted_finish(result: Gio.AsyncResult): boolea
|
|
|
764
764
|
* @param cancellable a #GCancellable
|
|
765
765
|
* @returns %TRUE if the certificate is pinned for the host and purpose
|
|
766
766
|
*/
|
|
767
|
-
function trust_is_certificate_pinned(certificate: Certificate, purpose: string
|
|
767
|
+
function trust_is_certificate_pinned(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
768
768
|
/**
|
|
769
769
|
* Check if `certificate` is pinned for `purpose` to communicate with `peer`. A
|
|
770
770
|
* pinned certificate overrides all other certificate verification.
|
|
@@ -778,7 +778,7 @@ function trust_is_certificate_pinned(certificate: Certificate, purpose: string |
|
|
|
778
778
|
* @param cancellable a #GCancellable
|
|
779
779
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
780
780
|
*/
|
|
781
|
-
function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
781
|
+
function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
782
782
|
|
|
783
783
|
// Overloads of trust_is_certificate_pinned_async
|
|
784
784
|
|
|
@@ -797,7 +797,7 @@ function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate
|
|
|
797
797
|
* @param cancellable a #GCancellable
|
|
798
798
|
* @returns A Promise of: %TRUE if the certificate is pinned.
|
|
799
799
|
*/
|
|
800
|
-
function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
800
|
+
function trust_is_certificate_pinned_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
801
801
|
/**
|
|
802
802
|
* Finishes an asynchronous operation started by
|
|
803
803
|
* gcr_trust_is_certificate_pinned_async().
|
|
@@ -822,7 +822,7 @@ function trust_is_certificate_pinned_finish(result: Gio.AsyncResult): boolean
|
|
|
822
822
|
* @param cancellable a #GCancellable
|
|
823
823
|
* @returns %TRUE if the pinned certificate no longer exists
|
|
824
824
|
*/
|
|
825
|
-
function trust_remove_pinned_certificate(certificate: Certificate, purpose: string
|
|
825
|
+
function trust_remove_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean
|
|
826
826
|
/**
|
|
827
827
|
* Remove a pinned certificate for communication with `peer` for `purpose`.
|
|
828
828
|
*
|
|
@@ -838,7 +838,7 @@ function trust_remove_pinned_certificate(certificate: Certificate, purpose: stri
|
|
|
838
838
|
* @param cancellable a #GCancellable
|
|
839
839
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
840
840
|
*/
|
|
841
|
-
function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
841
|
+
function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
842
842
|
|
|
843
843
|
// Overloads of trust_remove_pinned_certificate_async
|
|
844
844
|
|
|
@@ -859,7 +859,7 @@ function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certifi
|
|
|
859
859
|
* @param cancellable a #GCancellable
|
|
860
860
|
* @returns A Promise of: %TRUE if the pinned certificate no longer exists
|
|
861
861
|
*/
|
|
862
|
-
function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string
|
|
862
|
+
function trust_remove_pinned_certificate_async<Z = unknown>(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
863
863
|
/**
|
|
864
864
|
* Finishes an asynchronous operation started by
|
|
865
865
|
* gcr_trust_remove_pinned_certificate_async().
|
|
@@ -993,7 +993,7 @@ interface Certificate {
|
|
|
993
993
|
* @param part a DN type string or OID.
|
|
994
994
|
* @returns the allocated part of the issuer DN, or %NULL if no such part is present
|
|
995
995
|
*/
|
|
996
|
-
get_issuer_part(part: string
|
|
996
|
+
get_issuer_part(part: string): string | null
|
|
997
997
|
/**
|
|
998
998
|
* Get the raw DER data for the issuer DN of the certificate.
|
|
999
999
|
*
|
|
@@ -1060,7 +1060,7 @@ interface Certificate {
|
|
|
1060
1060
|
* @param part a DN type string or OID.
|
|
1061
1061
|
* @returns the allocated part of the subject DN, or %NULL if no such part is present.
|
|
1062
1062
|
*/
|
|
1063
|
-
get_subject_part(part: string
|
|
1063
|
+
get_subject_part(part: string): string | null
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Get the raw DER data for the subject DN of the certificate.
|
|
1066
1066
|
*
|
|
@@ -1951,7 +1951,7 @@ interface Prompt {
|
|
|
1951
1951
|
* @param cancellable optional cancellation object
|
|
1952
1952
|
* @returns the password owned by the prompt, or %NULL
|
|
1953
1953
|
*/
|
|
1954
|
-
password(cancellable: Gio.Cancellable | null): string
|
|
1954
|
+
password(cancellable: Gio.Cancellable | null): string
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Prompts for password. Set the various properties on the prompt before calling
|
|
1957
1957
|
* this method to explain which password should be entered.
|
|
@@ -1974,7 +1974,7 @@ interface Prompt {
|
|
|
1974
1974
|
* @param cancellable optional cancellation object
|
|
1975
1975
|
* @returns A Promise of: the password owned by the prompt, or %NULL
|
|
1976
1976
|
*/
|
|
1977
|
-
password_async(cancellable: Gio.Cancellable | null): globalThis.Promise<string
|
|
1977
|
+
password_async(cancellable: Gio.Cancellable | null): globalThis.Promise<string>
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Complete an operation to prompt for a password.
|
|
1980
1980
|
*
|
|
@@ -1987,7 +1987,7 @@ interface Prompt {
|
|
|
1987
1987
|
* @param result asynchronous result passed to callback
|
|
1988
1988
|
* @returns the password owned by the prompt, or %NULL
|
|
1989
1989
|
*/
|
|
1990
|
-
password_finish(result: Gio.AsyncResult): string
|
|
1990
|
+
password_finish(result: Gio.AsyncResult): string
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Prompts for password. Set the various properties on the prompt before calling
|
|
1993
1993
|
* this method to explain which password should be entered.
|
|
@@ -2005,7 +2005,7 @@ interface Prompt {
|
|
|
2005
2005
|
* @param cancellable optional cancellation object
|
|
2006
2006
|
* @returns the password owned by the prompt, or %NULL
|
|
2007
2007
|
*/
|
|
2008
|
-
password_run(cancellable: Gio.Cancellable | null): string
|
|
2008
|
+
password_run(cancellable: Gio.Cancellable | null): string
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Reset the contents and properties of the prompt.
|
|
2011
2011
|
*/
|
|
@@ -2018,7 +2018,7 @@ interface Prompt {
|
|
|
2018
2018
|
* way it sees fit.
|
|
2019
2019
|
* @param window_id the window id
|
|
2020
2020
|
*/
|
|
2021
|
-
set_caller_window(window_id: string
|
|
2021
|
+
set_caller_window(window_id: string): void
|
|
2022
2022
|
/**
|
|
2023
2023
|
* Set the label for the continue button.
|
|
2024
2024
|
*
|
|
@@ -2026,7 +2026,7 @@ interface Prompt {
|
|
|
2026
2026
|
* from the prompt.
|
|
2027
2027
|
* @param cancel_label the label
|
|
2028
2028
|
*/
|
|
2029
|
-
set_cancel_label(cancel_label: string
|
|
2029
|
+
set_cancel_label(cancel_label: string): void
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Set whether the additional choice is chosen or not.
|
|
2032
2032
|
*
|
|
@@ -2054,7 +2054,7 @@ interface Prompt {
|
|
|
2054
2054
|
* from the prompt.
|
|
2055
2055
|
* @param continue_label the label
|
|
2056
2056
|
*/
|
|
2057
|
-
set_continue_label(continue_label: string
|
|
2057
|
+
set_continue_label(continue_label: string): void
|
|
2058
2058
|
/**
|
|
2059
2059
|
* Set the detailed description of the prompt.
|
|
2060
2060
|
*
|
|
@@ -2063,14 +2063,14 @@ interface Prompt {
|
|
|
2063
2063
|
* information.
|
|
2064
2064
|
* @param description the detailed description
|
|
2065
2065
|
*/
|
|
2066
|
-
set_description(description: string
|
|
2066
|
+
set_description(description: string): void
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Sets the prompt message for the user.
|
|
2069
2069
|
*
|
|
2070
2070
|
* A prompt implementation should always display this message.
|
|
2071
2071
|
* @param message the prompt message
|
|
2072
2072
|
*/
|
|
2073
|
-
set_message(message: string
|
|
2073
|
+
set_message(message: string): void
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Set whether the prompt will prompt for a new password.
|
|
2076
2076
|
*
|
|
@@ -2087,7 +2087,7 @@ interface Prompt {
|
|
|
2087
2087
|
* prompt message should contain relevant information.
|
|
2088
2088
|
* @param title the prompt title
|
|
2089
2089
|
*/
|
|
2090
|
-
set_title(title: string
|
|
2090
|
+
set_title(title: string): void
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Set a prompt warning displayed on the prompt.
|
|
2093
2093
|
*
|
|
@@ -2147,7 +2147,7 @@ interface Prompt {
|
|
|
2147
2147
|
* @param result asynchronous result passed to callback
|
|
2148
2148
|
* @returns the password owned by the prompt, or %NULL
|
|
2149
2149
|
*/
|
|
2150
|
-
vfunc_prompt_password_finish(result: Gio.AsyncResult): string
|
|
2150
|
+
vfunc_prompt_password_finish(result: Gio.AsyncResult): string
|
|
2151
2151
|
|
|
2152
2152
|
// Own signals of Gcr-4.Gcr.Prompt
|
|
2153
2153
|
|
|
@@ -2302,7 +2302,7 @@ interface CertificateChain {
|
|
|
2302
2302
|
* @param cancellable a #GCancellable or %NULL
|
|
2303
2303
|
* @returns whether the operation completed successfully
|
|
2304
2304
|
*/
|
|
2305
|
-
build(purpose: string
|
|
2305
|
+
build(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): boolean
|
|
2306
2306
|
/**
|
|
2307
2307
|
* Complete a certificate chain. Once a certificate chain has been built
|
|
2308
2308
|
* its status can be examined.
|
|
@@ -2339,7 +2339,7 @@ interface CertificateChain {
|
|
|
2339
2339
|
* @param cancellable a #GCancellable or %NULL
|
|
2340
2340
|
* @param callback this will be called when the operation completes.
|
|
2341
2341
|
*/
|
|
2342
|
-
build_async(purpose: string
|
|
2342
|
+
build_async(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2343
2343
|
|
|
2344
2344
|
// Overloads of build_async
|
|
2345
2345
|
|
|
@@ -2381,7 +2381,7 @@ interface CertificateChain {
|
|
|
2381
2381
|
* @param cancellable a #GCancellable or %NULL
|
|
2382
2382
|
* @returns A Promise of: whether the operation succeeded
|
|
2383
2383
|
*/
|
|
2384
|
-
build_async(purpose: string
|
|
2384
|
+
build_async(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Finishes an asynchronous operation started by
|
|
2387
2387
|
* gcr_certificate_chain_build_async().
|
|
@@ -2526,7 +2526,7 @@ interface CertificateField {
|
|
|
2526
2526
|
* Get the display label of the field.
|
|
2527
2527
|
* @returns the display label of the field
|
|
2528
2528
|
*/
|
|
2529
|
-
get_label(): string
|
|
2529
|
+
get_label(): string
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Get the parent #GcrCertificateSection.
|
|
2532
2532
|
* @returns the parent #GcrCertificateSection
|
|
@@ -2677,7 +2677,7 @@ interface CertificateRequest {
|
|
|
2677
2677
|
* Set the common name encoded in the certificate request.
|
|
2678
2678
|
* @param cn common name to set on the request
|
|
2679
2679
|
*/
|
|
2680
|
-
set_cn(cn: string
|
|
2680
|
+
set_cn(cn: string): void
|
|
2681
2681
|
|
|
2682
2682
|
// Class property signals of Gcr-4.Gcr.CertificateRequest
|
|
2683
2683
|
|
|
@@ -2779,7 +2779,7 @@ interface CertificateSection {
|
|
|
2779
2779
|
* Get the displayable label of the section.
|
|
2780
2780
|
* @returns the displayable label of the section
|
|
2781
2781
|
*/
|
|
2782
|
-
get_label(): string
|
|
2782
|
+
get_label(): string
|
|
2783
2783
|
|
|
2784
2784
|
// Class property signals of Gcr-4.Gcr.CertificateSection
|
|
2785
2785
|
|
|
@@ -2901,7 +2901,7 @@ interface Parser {
|
|
|
2901
2901
|
* Get the filename of the parser item.
|
|
2902
2902
|
* @returns the filename set on the parser, or %NULL
|
|
2903
2903
|
*/
|
|
2904
|
-
get_filename(): string
|
|
2904
|
+
get_filename(): string
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Get the currently parsed item
|
|
2907
2907
|
* @returns the currently parsed item
|
|
@@ -3144,13 +3144,13 @@ interface Pkcs11Certificate extends Certificate {
|
|
|
3144
3144
|
* @param key name of the key for that association
|
|
3145
3145
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3146
3146
|
*/
|
|
3147
|
-
get_data(key: string
|
|
3147
|
+
get_data(key: string): any | null
|
|
3148
3148
|
/**
|
|
3149
3149
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3150
3150
|
* @param key name of the key for that association
|
|
3151
3151
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3152
3152
|
*/
|
|
3153
|
-
get_data(key: string
|
|
3153
|
+
get_data(key: string): any | null
|
|
3154
3154
|
|
|
3155
3155
|
// Class property signals of Gcr-4.Gcr.Pkcs11Certificate
|
|
3156
3156
|
|
|
@@ -3221,7 +3221,7 @@ class Pkcs11Certificate extends Gck.Object {
|
|
|
3221
3221
|
* @param cancellable a #GCancellable
|
|
3222
3222
|
* @returns a new #GcrCertificate, or %NULL
|
|
3223
3223
|
*/
|
|
3224
|
-
static new_from_uri(pkcs11_uri: string
|
|
3224
|
+
static new_from_uri(pkcs11_uri: string, cancellable: Gio.Cancellable | null): Certificate | null
|
|
3225
3225
|
/**
|
|
3226
3226
|
* Lookup a certificate in the PKCS#11 storage by the given URI.
|
|
3227
3227
|
*
|
|
@@ -3232,7 +3232,7 @@ class Pkcs11Certificate extends Gck.Object {
|
|
|
3232
3232
|
* @param cancellable a #GCancellable
|
|
3233
3233
|
* @param callback a #GAsyncReadyCallback to call when the operation completes
|
|
3234
3234
|
*/
|
|
3235
|
-
static new_from_uri_async(pkcs11_uri: string
|
|
3235
|
+
static new_from_uri_async(pkcs11_uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Pkcs11Certificate> | null): void
|
|
3236
3236
|
/**
|
|
3237
3237
|
* Finishes an asynchronous operation started by
|
|
3238
3238
|
* gcr_pkcs11_certificate_new_from_uri_async().
|
|
@@ -3331,7 +3331,7 @@ interface SecretExchange {
|
|
|
3331
3331
|
* been called successfully.
|
|
3332
3332
|
* @returns the protocol or %NULL
|
|
3333
3333
|
*/
|
|
3334
|
-
get_protocol(): string
|
|
3334
|
+
get_protocol(): string
|
|
3335
3335
|
/**
|
|
3336
3336
|
* Returns the last secret received. If no secret has yet been received this
|
|
3337
3337
|
* will return %NULL. The string is owned by the #GcrSecretExchange object
|
|
@@ -3355,7 +3355,7 @@ interface SecretExchange {
|
|
|
3355
3355
|
* @param exchange the string received
|
|
3356
3356
|
* @returns whether the string was successfully parsed and received
|
|
3357
3357
|
*/
|
|
3358
|
-
receive(exchange: string
|
|
3358
|
+
receive(exchange: string): boolean
|
|
3359
3359
|
/**
|
|
3360
3360
|
* Send a reply to the other side of the secret exchange, optionally sending a
|
|
3361
3361
|
* secret.
|
|
@@ -3372,7 +3372,7 @@ interface SecretExchange {
|
|
|
3372
3372
|
// Own virtual methods of Gcr-4.Gcr.SecretExchange
|
|
3373
3373
|
|
|
3374
3374
|
vfunc_derive_transport_key(peer: number, n_peer: number): boolean
|
|
3375
|
-
vfunc_generate_exchange_key(scheme: string
|
|
3375
|
+
vfunc_generate_exchange_key(scheme: string, public_key: number, n_public_key: number): boolean
|
|
3376
3376
|
|
|
3377
3377
|
// Class property signals of Gcr-4.Gcr.SecretExchange
|
|
3378
3378
|
|
|
@@ -4250,7 +4250,7 @@ interface Parsed {
|
|
|
4250
4250
|
* Get the filename of the parsed item.
|
|
4251
4251
|
* @returns the filename of the parsed item, or %NULL
|
|
4252
4252
|
*/
|
|
4253
|
-
get_filename(): string
|
|
4253
|
+
get_filename(): string
|
|
4254
4254
|
/**
|
|
4255
4255
|
* Get the format of the parsed item.
|
|
4256
4256
|
* @returns the data format of the item
|
|
@@ -4352,7 +4352,7 @@ interface PromptInterface {
|
|
|
4352
4352
|
*/
|
|
4353
4353
|
parent_iface: GObject.TypeInterface
|
|
4354
4354
|
prompt_password_async: (prompt: Prompt, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
4355
|
-
prompt_password_finish: (prompt: Prompt, result: Gio.AsyncResult) => string
|
|
4355
|
+
prompt_password_finish: (prompt: Prompt, result: Gio.AsyncResult) => string
|
|
4356
4356
|
prompt_confirm_async: (prompt: Prompt, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
4357
4357
|
prompt_confirm_finish: (prompt: Prompt, result: Gio.AsyncResult) => PromptReply
|
|
4358
4358
|
prompt_close: (prompt: Prompt) => void
|
|
@@ -4373,7 +4373,7 @@ interface SecretExchangeClass {
|
|
|
4373
4373
|
|
|
4374
4374
|
// Own fields of Gcr-4.Gcr.SecretExchangeClass
|
|
4375
4375
|
|
|
4376
|
-
generate_exchange_key: (exchange: SecretExchange, scheme: string
|
|
4376
|
+
generate_exchange_key: (exchange: SecretExchange, scheme: string, public_key: number, n_public_key: number) => boolean
|
|
4377
4377
|
derive_transport_key: (exchange: SecretExchange, peer: number, n_peer: number) => boolean
|
|
4378
4378
|
}
|
|
4379
4379
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gcr-4",
|
|
3
|
-
"version": "4.1.0-3.2.
|
|
3
|
+
"version": "4.1.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gcr-4.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gcr-4.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gck-2": "^4.1.0-3.2.
|
|
29
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gjs": "^3.2.
|
|
31
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gck-2": "^4.1.0-3.2.7",
|
|
29
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gjs": "^3.2.7",
|
|
31
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|