Searched refs:mech (Results 1 - 25 of 187) sorted by relevance

12345678

/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Ddhmech.c38 {0, 0}, /* OID for mech type. */
101 * then check that the mech is not already initialized (If so just return
102 * the mech). It will then assign the entry points that are common to the
103 * mechanism family to the uninitialized mech. After which, it allocate space
109 __dh_gss_initialize(gss_mechanism mech) argument
111 if (mech->context != NULL)
112 return (mech); /* already initialized */
115 *mech = dh_mechanism;
118 mech->context = New(dh_context_desc, 1);
119 if (mech
[all...]
/opensolaris-onvv-gate/usr/src/lib/libgss/
H A Dg_inq_context_oid.c46 gss_mechanism mech; local
60 mech = gssint_get_mechanism (ctx->mech_type);
62 if (mech != NULL) {
63 if (mech->gss_inquire_sec_context_by_oid != NULL) {
64 status = mech->gss_inquire_sec_context_by_oid(minor_status,
69 map_error(minor_status, mech);
H A Dg_context_time.c43 gss_mechanism mech; local
61 mech = __gss_get_mechanism(ctx->mech_type);
63 if (mech) {
65 if (mech->gss_context_time) {
66 status = mech->gss_context_time(
67 mech->context,
72 map_error(minor_status, mech);
H A Dg_process_context.c44 gss_mechanism mech; local
65 mech = __gss_get_mechanism(ctx->mech_type);
67 if (mech) {
69 if (mech->gss_process_context_token) {
70 status = mech->gss_process_context_token(
71 mech->context,
76 map_error(minor_status, mech);
H A Dg_inquire_context.c81 gss_mechanism mech; local
99 mech = __gss_get_mechanism(ctx->mech_type);
101 if (!mech || !mech->gss_inquire_context || !mech->gss_display_name ||
102 !mech->gss_release_name) {
106 status = mech->gss_inquire_context(
107 mech->context,
119 map_error(minor_status, mech);
125 status = __gss_convert_name_to_union_name(minor_status, mech,
[all...]
H A Dg_compare_name.c75 gss_mechanism mech = NULL; local
99 mech = __gss_get_mechanism(union_name1->mech_type);
100 if (!mech)
102 if (!mech->gss_compare_name)
119 if (!mech)
121 if (!mech->gss_compare_name)
123 major_status = mech->gss_compare_name(mech->context,
129 map_error(minor_status, mech);
200 if (!mech)
[all...]
H A Dg_seal.c90 gss_mechanism mech; local
105 mech = __gss_get_mechanism(ctx->mech_type);
107 if (mech) {
108 if (mech->gss_seal) {
109 status = mech->gss_seal(
110 mech->context,
119 map_error(minor_status, mech);
168 gss_mechanism mech; local
187 mech = __gss_get_mechanism(ctx->mech_type);
189 if (!mech)
[all...]
H A Dg_store_cred.c100 gss_mechanism mech; local
125 mech = __gss_get_mechanism(desired_mech);
126 if (mech == NULL)
129 if (mech->gss_store_cred == NULL)
136 major_status = mech->gss_store_cred(mech->context,
146 map_error(minor_status, mech);
155 /* Get mech and cred element */
157 mech = __gss_get_mechanism(dmech);
158 if (mech
[all...]
H A Dg_rel_cred.c47 gss_mechanism mech; local
76 mech = __gss_get_mechanism(&union_cred->mechs_array[j]);
80 if (mech) {
81 if (mech->gss_release_cred) {
82 temp_status = mech->gss_release_cred
83 (mech->context, minor_status,
87 map_error(minor_status, mech);
H A Dg_sign.c83 gss_mechanism mech; local
96 mech = __gss_get_mechanism(ctx->mech_type);
98 if (mech) {
99 if (mech->gss_sign) {
100 status = mech->gss_sign(
101 mech->context,
108 map_error(minor_status, mech);
H A Dg_unseal.c51 gss_mechanism mech; local
80 mech = __gss_get_mechanism(ctx->mech_type);
82 if (mech) {
83 if (mech->gss_unseal) {
84 status = mech->gss_unseal(
85 mech->context,
93 map_error(minor_status, mech);
H A Dg_verify.c47 gss_mechanism mech; local
66 mech = __gss_get_mechanism(ctx->mech_type);
68 if (mech) {
69 if (mech->gss_verify) {
70 status = mech->gss_verify(
71 mech->context,
78 map_error(minor_status, mech);
H A Dg_glue.c216 * <mech OID bytes>
307 gss_mechanism mech; local
309 mech = gssint_get_mechanism (mech_type);
310 if (mech) {
311 if (mech->gss_import_name) {
312 status = mech->gss_import_name (
313 mech->context, /* SUNW17PACresync */
319 map_error(minor_status, mech);
337 gss_mechanism mech; local
347 mech
461 gss_mechanism mech; local
489 gss_mechanism mech; local
519 gss_mechanism mech; local
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_spnego/
H A DMakefile40 HDRDIR = mech
61 $(RM) Makefile+ mech/spnego_mech.c+
63 < mech/spnego_mech.c > mech/spnego_mech.c+
64 $(MV) mech/spnego_mech.c+ mech/spnego_mech.c
68 $(CHMOD) 444 Makefile mech/spnego_mech.c
74 $(RM) Makefile+ mech/spnego_mech.c+
76 < mech/spnego_mech.c > mech/spnego_mec
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dummy/
H A DMakefile85 $(RM) Makefile+ mech/dmech.c+
87 < mech/dmech.c > mech/dmech.c+
88 $(MV) mech/dmech.c+ mech/dmech.c
92 $(CHMOD) 444 Makefile mech/dmech.c
98 $(RM) Makefile+ mech/dmech.c+
100 < mech/dmech.c > mech/dmech.c+
101 $(MV) mech/dmec
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/backend/
H A DMakefile28 PROTOCOL_DIR = mech
32 DERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
65 mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
69 mech/dhmech_prot.h: mech/dhmech_prot.x
79 $(RM) Makefile+ Makefile.com+ mech/crypto.c+ mech/dhmech.c+
87 < mech/crypto.c > mech/crypt
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c95 gss_mechanism (*mech_init)(gss_mechanism mech);
96 gss_mechanism mech; local
116 if ((mech = mech_init(dhmech)) == NULL) {
121 mech->mech_type = mech_type;
124 context = (dh_context_t)mech->context;
130 context->mech = &mech->mech_type;
132 return (mech);
/opensolaris-onvv-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dencr_mgr.c34 CK_MECHANISM * mech,
45 if (! sess || ! ctx || ! mech) {
88 switch (mech->mechanism) {
91 if (mech->ulParameterLen != 0) {
114 if (mech->ulParameterLen > 0) {
115 ptr = (CK_BYTE *)malloc(mech->ulParameterLen);
119 (void) memcpy(ptr, mech->pParameter, mech->ulParameterLen);
123 ctx->mech.ulParameterLen = mech
31 encr_mgr_init(SESSION * sess, ENCR_DECR_CONTEXT * ctx, CK_ULONG operation, CK_MECHANISM * mech, CK_OBJECT_HANDLE key_handle) argument
[all...]
H A Ddecr_mgr.c36 CK_MECHANISM *mech,
88 switch (mech->mechanism) {
91 if (mech->ulParameterLen != 0)
115 if (mech->ulParameterLen > 0) {
116 ptr = (CK_BYTE *)malloc(mech->ulParameterLen);
120 (void) memcpy(ptr, mech->pParameter, mech->ulParameterLen);
124 ctx->mech.ulParameterLen = mech->ulParameterLen;
125 ctx->mech
32 decr_mgr_init( SESSION *sess, ENCR_DECR_CONTEXT *ctx, CK_ULONG operation, CK_MECHANISM *mech, CK_OBJECT_HANDLE key_handle) argument
[all...]
H A Dsign_mgr.c33 CK_MECHANISM * mech,
66 switch (mech->mechanism) {
139 if (mech->ulParameterLen != 0) {
164 (CK_MAC_GENERAL_PARAMS *)mech->pParameter;
166 if (mech->ulParameterLen !=
171 if ((mech->mechanism == CKM_MD5_HMAC_GENERAL) &&
175 if ((mech->mechanism == CKM_SHA_1_HMAC_GENERAL) &&
200 if (mech->ulParameterLen > 0 && mech->pParameter == NULL)
203 if (mech
31 sign_mgr_init(SESSION * sess, SIGN_VERIFY_CONTEXT * ctx, CK_MECHANISM * mech, CK_BBOOL recover_mode, CK_OBJECT_HANDLE key) argument
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/
H A Def_crypto.c22 crypto_mechanism_t mech; local
45 mech.cm_type = key->kef_mt;
46 if (mech.cm_type == CRYPTO_MECH_INVALID) {
48 "k5_ef_crypto - invalid crypto mech type: 0x%llx",
54 mech.cm_param_len = ivec->length;
55 mech.cm_param = (char *)ivec->data;
57 mech.cm_param_len = 0;
58 mech.cm_param = NULL;
62 rv = crypto_encrypt(&mech, &d1,
68 rv = crypto_decrypt(&mech,
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_token.c47 /* XXXX this code currently makes the assumption that a mech oid will
70 the sequence tag and length octets, the mech OID DER encoding, and the
147 /* returns the length of a token, given the mech oid and the body size */
149 unsigned int g_token_size(mech, body_size)
150 const gss_OID_desc * mech;
154 body_size += 4 + (int) mech->length; /* NEED overflow check */
161 void g_make_token_header(mech, body_size, buf, tok_type)
162 const gss_OID_desc * mech;
169 (tok_type == -1) ? 2 : (int) (4 + mech->length + body_size));
171 *(*buf)++ = (unsigned char) mech
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_errmap.c50 gss_OID_desc mech; member in struct:mecherror
72 if (m1.mech.length < m2.mech.length)
74 if (m1.mech.length > m2.mech.length)
76 if (m1.mech.length == 0)
78 return memcmp(m1.mech.elements, m2.mech.elements, m1.mech.length);
91 dest->mech
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ldap/common/
H A Dldaptool-sasl.h15 void *ldaptool_set_sasl_defaults ( LDAP *ld, char *mech, char *authid, char *username, char *passwd, char *realm );
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/
H A DMakefile32 crypto/des/d3_cbc.c+ mech/seal.c+ mech/unseal.c+
35 < mech/seal.c > mech/seal.c+
36 $(MV) mech/seal.c+ mech/seal.c
39 < mech/unseal.c > mech/unseal.c+
40 $(MV) mech/unseal.c+ mech/unsea
[all...]

Completed in 196 milliseconds

12345678