Lines Matching refs:cert0
172 SecCertificateRef cert0;
173 isnt(cert0 = SecCertificateCreateWithBytes(NULL, _c0, sizeof(_c0)),
174 NULL, "create cert0");
178 ok(!SecTrustStoreContains(user_store, cert0),
179 "cert0 is not yet present");
180 ok_status(SecTrustStoreSetTrustSettings(user_store, cert0, NULL),
181 "make cert0 trusted for anything");
182 ok(SecTrustStoreContains(user_store, cert0),
183 "cert0 is present");
184 ok_status(SecTrustStoreSetTrustSettings(user_store, cert0, NULL),
185 "make cert0 trusted for anything - again, should update now");
186 ok(SecTrustStoreContains(user_store, cert0),
187 "cert0 is still present");
188 ok_status(SecTrustStoreRemoveCertificate(user_store, cert0),
189 "removing cert0");
190 ok(!SecTrustStoreContains(user_store, cert0),
191 "cert0 is no longer present");
194 ok_status(SecTrustStoreSetTrustSettings(user_store, cert0, NULL),
195 "make cert0 trusted for anything");
196 ok(SecTrustStoreContains(user_store, cert0),
197 "cert0 is present");
200 ok_status(SecTrustStoreRemoveCertificate(user_store, cert0),
201 "removing cert0");
202 ok(!SecTrustStoreContains(user_store, cert0),
203 "cert0 is no longer present");
205 CFReleaseSafe(cert0);