/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/clAppUtils/ |
H A D | sslServe.cpp | 54 OSStatus ortn = noErr; local 63 params->ortn = noHardwareErr; 68 ortn = ListenForClients(params->port, params->nonBlocking, 70 switch(ortn) { 84 if(ortn != opWrErr) { 106 if(ortn) { 107 printf("ListenForClients returned %d; aborting\n", (int)ortn); 108 return ortn; 117 ortn = AcceptClientConnection(listenSock, &acceptSock, &peerId); 118 if(ortn) { [all...] |
H A D | sslRingBufferThreads.cpp | 44 OSStatus ortn; local 50 ortn = SSLNewContext(false, &ctx); 51 if(ortn) { 52 printSslErrStr("SSLNewContext", ortn); 55 ortn = SSLSetIOFuncs(ctx, ringReadFunc, ringWriteFunc); 56 if(ortn) { 57 printSslErrStr("SSLSetIOFuncs", ortn); 60 ortn = SSLSetConnection(ctx, (SSLConnectionRef)&ringBufs); 61 if(ortn) { 62 printSslErrStr("SSLSetConnection", ortn); 174 OSStatus ortn; local [all...] |
H A D | sslClient.cpp | 34 OSStatus ortn; local 43 params->ortn = noHardwareErr; 47 ortn = MakeServerConnection(params->hostName, params->port, 49 if(ortn) { 50 printf("MakeServerConnection returned %d; aborting\n", (int)ortn); 51 return ortn; 58 ortn = SSLNewContext(false, &ctx); 59 if(ortn) { 60 printSslErrStr("SSLNewContext", ortn); 64 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/sslViewer/ |
H A D | sslClient.cpp | 38 OSStatus ortn; local 46 params->ortn = noHardwareErr; 49 ortn = MakeServerConnection(params->hostName, params->port, 51 if(ortn) { 52 printf("MakeServerConnection returned %d; aborting\n", (int)ortn); 53 return ortn; 59 ortn = SSLNewContext(false, &ctx); 60 if(ortn) { 61 printSslErrStr("SSLNewContext", ortn); 64 ortn [all...] |
H A D | sslServe.cpp | 49 OSStatus ortn; local 57 params->ortn = noHardwareErr; 61 ortn = ListenForClients(params->port, params->nonBlocking, 63 switch(ortn) { 77 if(ortn != errSecOpWr) { 97 if(ortn) { 98 printf("ListenForClients returned %d; aborting\n", (int)ortn); 99 return ortn; 107 ortn = AcceptClientConnection(listenSock, &acceptSock, &peerId); 108 if(ortn) { [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/ocspTool/ |
H A D | ocspUtils.cpp | 19 OSStatus ortn; local 24 ortn = SecIdentityCopyPrivateKey(idRef, &privKeyRef); 25 if(ortn) { 26 cssmPerror("SecIdentityCopyPrivateKey", ortn); 27 return ortn; 29 ortn = SecKeyGetCSSMKey(privKeyRef, &privCssmKey); 30 if(ortn) { 31 cssmPerror("SecKeyGetCSSMKey", ortn); 34 ortn = SecKeyGetCSPHandle(privKeyRef, &cspHand); 35 if(ortn) { [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/p12/ |
H A D | p12ImportExport.cpp | 17 OSStatus ortn) 20 switch(ortn) { 42 printf("%s returned %d\n", op, (int)ortn); 56 OSStatus ortn; local 70 ortn = SecKeychainOpen(kcName, &kcRef); 71 if(ortn) { 72 printOsError("SecKeychainOpen", ortn); 73 return ortn; 77 ortn = SecKeychainUnlock(kcRef, strlen(kcPwd), (void *)kcPwd, true); 78 if(ortn) { 15 printOsError( const char *op, OSStatus ortn) argument 188 OSStatus ortn; local 333 OSStatus ortn; local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/sslEAP/ |
H A D | ringBufferThreads.cpp | 86 OSStatus ortn; local 94 ortn = SSLNewContext(false, &ctx); 95 if(ortn) { 96 printSslErrStr("SSLNewContext", ortn); 99 ortn = SSLSetIOFuncs(ctx, ringReadFunc, ringWriteFunc); 100 if(ortn) { 101 printSslErrStr("SSLSetIOFuncs", ortn); 104 ortn = SSLSetConnection(ctx, (SSLConnectionRef)&ringBufs); 105 if(ortn) { 106 printSslErrStr("SSLSetConnection", ortn); 228 OSStatus ortn; local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/dotMacArchive/ |
H A D | identSearch.cpp | 41 OSStatus ortn; local 44 ortn = SecIdentityCopyCertificate(idRef, &certRef); 45 if(ortn) { 47 cssmPerror("SecIdentityCopyCertificate", ortn); 48 return ortn; 63 ortn = SecKeychainItemCopyAttributesAndData((SecKeychainItemRef)certRef, 69 if(ortn || (attrList == NULL) || (attrList->count != 1)) { 71 cssmPerror("SecKeychainItemCopyAttributesAndData", ortn); 93 OSStatus ortn; local 97 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/sslHdshakeTime/ |
H A D | sslHdshakeTime.cpp | 212 OSStatus ortn; local 215 ortn = SecKeychainOpen(kcName, &certKc); 216 if(ortn) { 218 kcName, (int)ortn); 222 ortn = SecKeychainUnlock(certKc, strlen(password), password, true); 223 if(ortn) { 224 printf("SecKeychainUnlock returned %lu\n", ortn); 241 ortn = ListenForClients(port, 0, &listenSock); 242 if(ortn) { 256 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/trustApps/ |
H A D | trustApps.cpp | 25 OSStatus ortn; local 48 ortn = SecTrustedApplicationCreateFromPath(argv[nextArg], &appRef); 49 if(ortn) { 50 cssmPerror("SecTrustedApplicationCreateFromPath", ortn); 58 ortn = SecKeychainOpen(keychainName, &kcRef); 59 if(ortn) { 60 cssmPerror("SecKeychainOpen", ortn); 64 ortn = sslSimpleIdentPicker(kcRef, &identRef); 65 if(ortn) { 70 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/sslBench/ |
H A D | sslBench.cpp | 190 OSStatus ortn; local 193 ortn = SecKeychainOpen(kcName, &certKc); 194 if(ortn) { 196 kcName, (int)ortn); 200 ortn = SecKeychainUnlock(certKc, strlen(password), password, true); 201 if(ortn) { 202 printf("SecKeychainUnlock returned %d\n", (int)ortn); 214 ortn = ListenForClients(port, nonBlocking, &listenSock); 215 if(ortn) { 219 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/cmsTime/ |
H A D | cmsTime.cpp | 37 OSStatus ortn; local 42 ortn = CMSDecoderSetSearchKeychain(cmsDecoder, kcArray); 43 if(ortn) { 44 cssmPerror("CMSDecoderSetSearchKeychain", ortn); 45 return ortn; 48 ortn = CMSDecoderUpdateMessage(cmsDecoder, cmsData, cmsDataLen); 49 if(ortn) { 50 cssmPerror("CMSDecoderUpdateMessage", ortn); 51 return ortn; 53 ortn 115 OSStatus ortn = SecPolicySearchCreate(CSSM_CERT_X_509v3, local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/newCmsTool/ |
H A D | newCmsTool.cpp | 125 OSStatus ortn; local 136 ortn = SecKeychainSearchCreateFromAttributes(kcArArray, 140 if(ortn) { 141 cssmPerror("SecKeychainSearchCreateFromAttributes", ortn); 142 return ortn; 145 ortn = SecKeychainSearchCopyNext(srch, (SecKeychainItemRef *)cert); 146 if(ortn) { 149 return ortn; 168 OSStatus ortn = SecCertificateCreateFromData(&cssmCert, local 171 if(ortn) { 199 OSStatus ortn; local 232 OSStatus ortn = CMSEncoderUpdateContent(cmsEncoder, inData, thisMove); local 256 OSStatus ortn = CMSDecoderUpdateMessage(cmsDecoder, inData, thisMove); local 275 OSStatus ortn; local 387 OSStatus ortn = noErr; local 780 OSStatus ortn; local 928 OSStatus ortn; local 999 OSStatus ortn; local 1079 OSStatus ortn; local 1170 OSStatus ortn; local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/threadTest/ |
H A D | secTrustEval.cpp | 56 OSStatus ortn = SecCertificateCreateFromData(&cdata, local 60 if(ortn) { 61 cssmPerror("SecCertificateCreateFromData", ortn); 62 return (int)ortn; 67 ortn = SecKeychainCopySearchList(&sl); 68 if(ortn) { 69 cssmPerror("SecPolicySearchCreate", ortn); 70 return (int)ortn; 90 OSStatus ortn = SecPolicySearchCreate(CSSM_CERT_X_509v3, local 94 if(ortn) { [all...] |
H A D | kcStatus.cpp | 26 OSStatus ortn; local 39 ortn = SecKeychainCopyDefault(&kcRef); 40 if(ortn) { 41 cssmPerror("SecKeychainCopyDefault", ortn); 46 return (int)ortn; 49 ortn = SecKeychainGetStatus(kcRef, &kcStatus); 50 if(ortn) { 51 cssmPerror("SecKeychainGetStatus", ortn); 57 ortn = SecKeychainGetPath(kcRef, &len, path); 58 if(ortn) { [all...] |
/macosx-10.10.1/Security-57031.1.35/Security/tlsnke/tlsnketest/ |
H A D | dtls_client.c | 131 OSStatus ortn; local 149 ortn = TLSSocket_Attach(fd); 150 if(ortn) { 151 printSslErrStr("TLSSocket_Attach", ortn); 152 return ortn; 163 ortn = SSLSetRecordContext(ctx, c); 164 if(ortn) { 165 printSslErrStr("SSLSetRecordContext", ortn); 166 return ortn; 169 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/sysIdTool/ |
H A D | sysIdTool.cpp | 37 OSStatus ortn = SecKeychainOpen(sysKcPath, &kcRef); local 38 if(ortn) { 39 cssmPerror("SecKeychainOpen", ortn); 45 ortn = sslSimpleIdentPicker(kcRef, &idRef); 47 if(ortn) { 52 ortn = SecIdentitySetSystemIdentity(domain, idRef); 53 if(ortn) { 54 cssmPerror("SecIdentitySetSystemIdentity", ortn); 60 return ortn; 81 OSStatus ortn; local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/findCert/ |
H A D | findCert.cpp | 66 OSStatus ortn; local 83 ortn = SecKeychainSearchCreateFromAttributes(NULL, // default search list 87 if(ortn) { 88 cssmPerror("SecKeychainSearchCreateFromAttributes", ortn); 96 ortn = SecKeychainSearchCopyNext(srch, (SecKeychainItemRef *)&certRef); 97 if(ortn) { 100 ortn = SecCertificateGetData(certRef, &certData); 101 if(ortn) { 102 cssmPerror("SecCertificateGetData", ortn); 117 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/cspxutils/clearPubKeyTest/ |
H A D | clearPubKeyTest.cpp | 76 OSStatus ortn = SecKeyCreatePair(kcRef, keyAlg, keySizeInBits, 0, local 81 if(ortn) { 82 cssmPerror("SecKeyCreatePair", ortn); 93 OSStatus ortn; local 96 ortn = SecKeyGetCSSMKey(pubKeyRef, &cssmKey); 97 if(ortn) { 98 cssmPerror("SecKeyGetCSSMKey", ortn); 101 ortn = SecKeyGetCSPHandle(pubKeyRef, &cspHand); 102 if(ortn) { 103 cssmPerror("SecKeyGetCSPHandle", ortn); 152 OSStatus ortn = SecKeychainCreate(KEYCHAIN_NAME, local [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/certChain/ |
H A D | certChain.cpp | 23 OSStatus ortn; local 68 ortn = SecCertificateCreateFromData(&cdata, 72 if(ortn) { 73 cssmPerror("SecCertificateCreateFromData", ortn); 85 ortn = SecPolicySearchCreate(CSSM_CERT_X_509v3, 89 if(ortn) { 90 cssmPerror("SecPolicySearchCreate", ortn); 93 ortn = SecPolicySearchCopyNext(policySearch, &policy); 94 if(ortn) { 95 cssmPerror("SecPolicySearchCopyNext", ortn); [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/krbtool/ |
H A D | identPicker.cpp | 86 OSStatus ortn = SecKeychainItemCopyAttributesAndData( local 93 if(ortn) { 94 cssmPerror("SecKeychainItemCopyAttributesAndData", ortn); 125 OSStatus ortn; local 128 ortn = SecKeychainGetPath(kcRef, &pathLen, fullPath); 129 if(ortn) { 130 cssmPerror("SecKeychainGetPath", ortn); 177 OSStatus ortn = SecKeychainItemCopyAttributesAndData( local 184 if(ortn) { 185 cssmPerror("SecKeychainItemCopyAttributesAndData", ortn); 239 OSStatus ortn = SecIdentityCopyCertificate(identity, &certRef); local 399 OSStatus ortn; local 459 OSStatus ortn; local 533 OSStatus ortn; local [all...] |
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_ssl/dtlsEcho/ |
H A D | dtlsEchoServer.c | 224 OSStatus ortn; local 233 ortn = SSLNewDatagramContext(true, &ctx); 234 if(ortn) { 235 printSslErrStr("SSLNewDatagramContext", ortn); 236 return ortn; 239 ortn = SSLSetIOFuncs(ctx, SocketRead, SocketWrite); 240 if(ortn) { 241 printSslErrStr("SSLSetIOFuncs", ortn); 242 return ortn; 245 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/idPref/ |
H A D | idPref.cpp | 72 OSStatus ortn; local 74 ortn = SecKeychainOpen(kcName, &kcRef); 75 if(ortn) { 76 cssmPerror("SecKeychainOpen", ortn); 83 ortn = sslSimpleIdentPicker(kcRef, &idRef); 84 if(ortn) { 88 ortn = SecIdentitySetPreference(idRef, prefStr, 0); 89 if(ortn) { 90 cssmPerror("SecIdentitySetPreference", ortn); 96 ortn [all...] |
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/cmstool/testSubjects/ |
H A D | ptext1.txt | 68 OSStatus ortn; 79 ortn = SecKeychainSearchCreateFromAttributes(kcArArray, 83 if(ortn) { 84 cssmPerror("SecKeychainSearchCreateFromAttributes", ortn); 85 return ortn; 88 ortn = SecKeychainSearchCopyNext(srch, (SecKeychainItemRef *)cert); 89 if(ortn) { 91 return ortn; 100 OSStatus ortn; 103 ortn [all...] |