case kTP_SSL:
/*
* not present, not leaf, not root, kTPx509Basic
- * ....OK; infer as true
+ * ....RFC2459 says this can not be a CA
*/
- cA = CSSM_TRUE;
+ cA = CSSM_FALSE;
break;
case kTPiSign:
/* required for iSign in this position */
thisTpCertInfo->addStatusCode(CSSMERR_TP_VERIFY_ACTION_FAILED);
}
#endif /* BASIC_CONSTRAINTS_MUST_BE_CRITICAL */
- cA = thisCertInfo->basicConstraints.extnData->basicConstraints.cA;
+
+ const CE_BasicConstraints *bcp =
+ &thisCertInfo->basicConstraints.extnData->basicConstraints;
+
+ cA = bcp->cA;
+
+ /* Verify pathLenConstraint if present */
+ if(!isLeaf && // leaf, certDex=0, don't care
+ cA && // p.l.c. only valid for CAs
+ bcp->pathLenConstraintPresent) { // present?
+ /*
+ * pathLenConstraint=0 legal for certDex 1 only
+ * pathLenConstraint=1 legal for certDex {1,2}
+ * etc.
+ */
+ if(certDex > (bcp->pathLenConstraint + 1)) {
+ errorLog0("tp_policyVerify: pathLenConstraint exceeded\n");
+ policyFail = CSSM_TRUE;
+ thisTpCertInfo->addStatusCode(
+ CSSMERR_APPLETP_PATH_LEN_CONSTRAINT);
+ }
+ }
}
if(isLeaf) {
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
FRAMEWORK_SEARCH_PATHS = "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"";
HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)/BSafe.framework/Headers\" \"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks/BSafe.framework/Headers\" \"$(SRCROOT)/AppleCSP\" \"$(SRCROOT)/AppleCSP/open_ssl\"";
LIBRARY_STYLE = STATIC;
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
LIBRARY_STYLE = STATIC;
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "-DVDADER_RULES";
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
LIBRARY_STYLE = STATIC;
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "";
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
LIBRARY_STYLE = STATIC;
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "-DVDADER_RULES";
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
LIBRARY_STYLE = STATIC;
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "-DVDADER_RULES";
01FA8900FFF2BC5611CD283A,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
INSTALL_PATH = "$(SYSTEM_CORE_SERVICES_DIR)";
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
01FA890AFFF2BCA811CD283A,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
INSTALL_PATH = "$(SYSTEM_CORE_SERVICES_DIR)";
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
INSTALL_PATH = /usr/local/lib;
LIBRARY_STYLE = STATIC;
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
F5DDE3AE00B3358F01CD283A,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
FRAMEWORK_SEARCH_PATHS = "";
FRAMEWORK_VERSION = A;
HEADER_SEARCH_PATHS = "\"$(SRCROOT)\" \"$(BUILT_PRODUCTS_DIR)/derived_src\"";
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 53;
+ DYLIB_CURRENT_VERSION = 54.1;
HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)/include\"";
INSTALL_PATH = /usr/local/lib;
LIBRARY_STYLE = STATIC;
325EAA2800D6B08805CD296C,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "";
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";
3290382100D6BA5905CD296C,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "";
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";
3290382700D6BA5905CD296C,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "";
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";
3290382D00D6BA5905CD296C,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_CFLAGS = "";
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";
3290383300D6BA5905CD296C,
);
buildSettings = {
- CURRENT_PROJECT_VERSION = 53;
+ CURRENT_PROJECT_VERSION = 54.1;
LIBRARY_SEARCH_PATHS = "";
OPTIMIZATION_CFLAGS = "-Os -DNDEBUG";
OTHER_LDFLAGS = "-bundle -undefined error";
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>53</string>
+ <string>54.1</string>
</dict>
</plist>
";