OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * pkix_pl_httpdefaultclient.c | 5 * pkix_pl_httpdefaultclient.c |
6 * | 6 * |
7 * HTTPDefaultClient Function Definitions | 7 * HTTPDefaultClient Function Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 PKIX_RETURN(HTTPDEFAULTCLIENT); | 1125 PKIX_RETURN(HTTPDEFAULTCLIENT); |
1126 | 1126 |
1127 } | 1127 } |
1128 | 1128 |
1129 PKIX_Error * | 1129 PKIX_Error * |
1130 pkix_pl_HttpDefaultClient_KeepAliveSession( | 1130 pkix_pl_HttpDefaultClient_KeepAliveSession( |
1131 SEC_HTTP_SERVER_SESSION session, | 1131 SEC_HTTP_SERVER_SESSION session, |
1132 PRPollDesc **pPollDesc, | 1132 PRPollDesc **pPollDesc, |
1133 void *plContext) | 1133 void *plContext) |
1134 { | 1134 { |
1135 PKIX_PL_HttpDefaultClient *client = NULL; | |
1136 | |
1137 PKIX_ENTER | 1135 PKIX_ENTER |
1138 (HTTPDEFAULTCLIENT, | 1136 (HTTPDEFAULTCLIENT, |
1139 "pkix_pl_HttpDefaultClient_KeepAliveSession"); | 1137 "pkix_pl_HttpDefaultClient_KeepAliveSession"); |
1140 PKIX_NULLCHECK_TWO(session, pPollDesc); | 1138 PKIX_NULLCHECK_TWO(session, pPollDesc); |
1141 | 1139 |
1142 PKIX_CHECK(pkix_CheckType | 1140 PKIX_CHECK(pkix_CheckType |
1143 ((PKIX_PL_Object *)session, | 1141 ((PKIX_PL_Object *)session, |
1144 PKIX_HTTPDEFAULTCLIENT_TYPE, | 1142 PKIX_HTTPDEFAULTCLIENT_TYPE, |
1145 plContext), | 1143 plContext), |
1146 PKIX_SESSIONNOTANHTTPDEFAULTCLIENT); | 1144 PKIX_SESSIONNOTANHTTPDEFAULTCLIENT); |
1147 | 1145 |
1148 client = (PKIX_PL_HttpDefaultClient *)session; | |
1149 | |
1150 /* XXX Not implemented */ | 1146 /* XXX Not implemented */ |
1151 | 1147 |
1152 cleanup: | 1148 cleanup: |
1153 | 1149 |
1154 PKIX_RETURN(HTTPDEFAULTCLIENT); | 1150 PKIX_RETURN(HTTPDEFAULTCLIENT); |
1155 | 1151 |
1156 } | 1152 } |
1157 | 1153 |
1158 PKIX_Error * | 1154 PKIX_Error * |
1159 pkix_pl_HttpDefaultClient_RequestCreate( | 1155 pkix_pl_HttpDefaultClient_RequestCreate( |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 { | 1649 { |
1654 PKIX_Error *err = | 1650 PKIX_Error *err = |
1655 PKIX_PL_Object_DecRef((PKIX_PL_Object *)(request), plContext); | 1651 PKIX_PL_Object_DecRef((PKIX_PL_Object *)(request), plContext); |
1656 | 1652 |
1657 if (err) { | 1653 if (err) { |
1658 PKIX_PL_Object_DecRef((PKIX_PL_Object *)err, plContext); | 1654 PKIX_PL_Object_DecRef((PKIX_PL_Object *)err, plContext); |
1659 return SECFailure; | 1655 return SECFailure; |
1660 } | 1656 } |
1661 return SECSuccess; | 1657 return SECSuccess; |
1662 } | 1658 } |
OLD | NEW |