Index: external_tests/common/scoped_ptrs.h |
diff --git a/external_tests/common/scoped_ptrs.h b/external_tests/common/scoped_ptrs.h |
index 261ff7a9ca13527970af2aed234daca27df58f8c..6a6aae95af701e5a4d35366c8457d6450da062c6 100644 |
--- a/external_tests/common/scoped_ptrs.h |
+++ b/external_tests/common/scoped_ptrs.h |
@@ -10,6 +10,7 @@ |
#include "cert.h" |
#include "keyhi.h" |
#include "pk11pub.h" |
+#include "prio.h" |
namespace nss_test { |
@@ -24,6 +25,7 @@ struct ScopedDelete { |
void operator()(SECItem* item) { SECITEM_FreeItem(item, true); } |
void operator()(SECKEYPublicKey* key) { SECKEY_DestroyPublicKey(key); } |
void operator()(SECKEYPrivateKey* key) { SECKEY_DestroyPrivateKey(key); } |
+ void operator()(PRFileDesc* fd) { PR_Close(fd); } |
}; |
template<class T> |
@@ -41,6 +43,7 @@ SCOPED(SECAlgorithmID); |
SCOPED(SECItem); |
SCOPED(SECKEYPublicKey); |
SCOPED(SECKEYPrivateKey); |
+SCOPED(PRFileDesc); |
#undef SCOPED |